README.md in acme-client-0.3.1 vs README.md in acme-client-0.3.2
- old
+ new
@@ -35,11 +35,11 @@
# You should probably use the staging endpoint for all your experimentation:
# endpoint = 'https://acme-staging.api.letsencrypt.org/'
endpoint = 'https://acme-v01.api.letsencrypt.org/'
# Initialize the client
-require 'acme/client'
-client = Acme::Client.new(private_key: private_key, endpoint: endpoint)
+require 'acme-client'
+client = Acme::Client.new(private_key: private_key, endpoint: endpoint, connection_options: { request: { open_timeout: 5, timeout: 5 } })
# If the private key is not known to the server, we need to register it for the first time.
registration = client.register(contact: 'mailto:contact@example.com')
# You may need to agree to the terms of service (that's up the to the server to require it or not but boulder does by default)