From 41e353d879178aef4ed0320b30c50b023ed0f336 Mon Sep 17 00:00:00 2001 From: lazylester Date: Tue, 3 Aug 2021 15:55:10 -0700 Subject: [PATCH 1/2] Update README.md I tried to follow your instructions, but kept getting "no account exists for this key" message. When I established an account first as my proposed change shows, everything miraculously worked! --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index be27a49..46ee879 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,13 @@ end The SSL certificate setup depends on the web server, this gem can work with `ngx_mruby` or `kong`. +### Let's Encrypt Account + +```ruby +account = LetsEncrypt.client.new_account(contact: 'mailto:myname@mydomain.com', terms_of_service_agreed: true) +kid = account.kid +``` + ### Certificate Model #### Create From ffe5c32fbf2a865d53b469ab0c15b17dfaffd5dc Mon Sep 17 00:00:00 2001 From: lazylester Date: Thu, 5 Aug 2021 06:27:57 -0700 Subject: [PATCH 2/2] Update README.md make it explicit that `rails g lets_encrypt:register` establishes the account at letsencrypt.org --- README.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/README.md b/README.md index 46ee879..8ddf49d 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ rails generate lets_encrypt:install rake db:migrate ``` -Setup private key for Let's Encrypt API +Setup private key for Let's Encrypt API, and create an account at letsencrypt.org associated with that key ```bash rails generate lets_encrypt:register @@ -72,13 +72,6 @@ end The SSL certificate setup depends on the web server, this gem can work with `ngx_mruby` or `kong`. -### Let's Encrypt Account - -```ruby -account = LetsEncrypt.client.new_account(contact: 'mailto:myname@mydomain.com', terms_of_service_agreed: true) -kid = account.kid -``` - ### Certificate Model #### Create