README.md in acme-client-0.1.1 vs README.md in acme-client-0.1.2

- old
+ new

@@ -1,21 +1,21 @@ # Acme::Client `acme-client` is a client implementation of the [ACME](https://letsencrypt.github.io/acme-spec) protocol in Ruby. -You can find the server reference implementation for ACME server [here](github.com/letsencrypt/boulder) and also the a reference [client](github.com/letsencrypt/letsencrypt) in python. +You can find the server reference implementation for ACME server [here](https://github.com/letsencrypt/boulder) and also the a reference [client](https://github.com/letsencrypt/letsencrypt) in python. ACME is part of the [Letsencrypt](https://letsencrypt.org/) project, that are working hard at encrypting all the things. ## Usage ```ruby # We're going to need a private key. private_key = OpenSSL::PKey::RSA.new(2048) # We need an ACME server to talk to, see github.com/letsencrypt/boulder -endpoint = 'http://letsencrypt.com/' +endpoint = 'https://acme-staging.api.letsencrypt.org' # Initialize the client client = Acme::Client.new(private_key: private_key, endpoint: endpoint) # If the private key is not known to the server, we need to register it for the first time. @@ -24,11 +24,11 @@ # You'll may need to agree to the term (that's up the to the server to require it or not but boulder does by default) registration.agree_terms # Let's try to optain a certificate for yourdomain.com -# We need to prove that we control the domain using one of the challanges method. +# We need to prove that we control the domain using one of the challenges method. authorization = client.authorize(domain: 'yourdomain.com') # For now the only challenge method supprted by the client is simple_http. simple_http = authorization.simple_http @@ -62,10 +62,10 @@ csr.subject = OpenSSL::X509::Name.new([ ['CN', common_name, OpenSSL::ASN1::UTF8STRING] ]) csr.public_key = certificate_private_key.public_key -csr.sign(private_key, OpenSSL::Digest::SHA256.new) +csr.sign(certificate_private_key, OpenSSL::Digest::SHA256.new) # We can now request a certificate client.new_certificate(csr) # => #<OpenSSL::X509::Certificate ....> ```