You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing the letsencrypt_plugin.yml file it seems to not like the dynamically created array:
1. Expected behavior
Running rake letsencrypt_plugin outputs
I, [2016-09-24T08:49:40.761340 #4162] INFO -- : Trying to register at Let's Encrypt service...
I, [2016-09-24T08:49:40.761411 #4162] INFO -- : Loading private key...
I, [2016-09-24T08:49:41.796374 #4162] INFO -- : Acme::Client::Error::Malformed - Registration key is already in use
I, [2016-09-24T08:49:41.796482 #4162] INFO -- : Already registered.
(etc)
2. Actual behavior
Running rake letsencrypt_plugin outputs:
Psych::SyntaxError: (/Users/simon/src/openfarm/OpenFarm/config/letsencrypt_plugin.yml): did not find expected key while parsing a block mapping at line 2 column 3
/Users/simon/src/openfarm/OpenFarm/config/environment.rb:17:in `<top (required)>'
Tasks: TOP => letsencrypt_plugin => setup_logger => environment
3. Steps to reproduce issue
Set config file to:
default: &default
endpoint: 'https://acme-v01.api.letsencrypt.org/'
email: '[email protected]'
domain: '<%= ['openfarm.cc', 'www.openfarm.cc', 'blog.openfarm.cc'].join(' ') %>'
# in Rails.root, path to private key
private_key: 'key/keyfile.pem'
# in Rails.root, path where certificates
# will be stored (on Heroku this variable is ignored)
output_cert_dir: 'certificates'
# in Rails.root, path where challenge token
# will be stored in case when DB will not be used
challenge_dir_name: 'challenge'
production:
<<: *default
development:
<<: *default
test:
<<: *default
Set up directories as per the instructions.
Run rake letsencrypt_plugin
Changing the domain to be: domain: 'openfarm.cc www.openfarm.cc blog.openfarm.cc'
gets past that first bump, though now I'm getting the error saying that I am getting an invalid response, and that's probably because I'm running the script on my local rather than on Heroku. Maybe that's the reason that the rake job fails?
4. Your configuration (ruby, rails version, your Gemifile and Gemfile.lock files etc.)
now I'm getting the error saying that I am getting an invalid response, and that's probably because I'm running the script on my local rather than on Heroku. Maybe that's the reason that the rake job fails?
Yes. It needs to be run on the server where your domains are running (wherever your openfarm.cc is, eg. heroku).
When writing the letsencrypt_plugin.yml file it seems to not like the dynamically created array:
1. Expected behavior
Running
rake letsencrypt_plugin
outputs2. Actual behavior
Running
rake letsencrypt_plugin
outputs:3. Steps to reproduce issue
rake letsencrypt_plugin
Changing the domain to be:
domain: 'openfarm.cc www.openfarm.cc blog.openfarm.cc'
gets past that first bump, though now I'm getting the error saying that I am getting an invalid response, and that's probably because I'm running the script on my local rather than on Heroku. Maybe that's the reason that the rake job fails?
4. Your configuration (ruby, rails version, your Gemifile and Gemfile.lock files etc.)
The text was updated successfully, but these errors were encountered: