Letsencrypt Failing to install
I used EE to set up my server and install a site. The site is live and working, however, I am getting the error below when I try and install letsencrypt.
Unable to setup, Let's Encrypt
Please make sure that your site is pointed to
same server on which you are running Let's Encrypt Client
to allow it to verify the site automatically.
I run hostname on my Ubuntu server and it gives the correct hostname. Any idea what is going wrong?
I also got this error until I added: www to my cname record for the domain. point it to host: @ ... basically you have to make sure www and non-www points to your server. hope that helps
On Sat, Jan 9, 2016 at 2:28 PM, Deric Cain [email protected] wrote:
I used EE to set up my server and install a site. The site is live and working, however, I am getting the error below when I try and install letsencrypt.
Unable to setup, Let's Encrypt Please make sure that your site is pointed to same server on which you are running Let's Encrypt Client to allow it to verify the site automatically.
I run hostname on my Ubuntu server and it gives the correct hostname. Any idea what is going wrong?
— Reply to this email directly or view it on GitHub https://github.com/EasyEngine/easyengine/issues/663.
Thanks for the reply! I tried that and still no luck. I made the change to the DNS last night and tried again this morning but still get the same error. Here is my DNS config:
dericcain.com. 1800 IN A 104.131.56.118
dashboard.dericcain.com. 1800 IN A 104.131.56.118
www.dericcain.com. 1800 IN A 104.131.56.118
I also got this error until I added: www to my cname record for the domain. point it to host: @ ... basically you have to make sure www and non-www points to your server. hope that helps
Hii @dericcain
Could you please provide output of tail -n100 /var/log/ee/ee.log
I found some information that may help. I changed my webroot to be current instead of htdocs, so I created a symlink htdocs -> current. Reason being, I use Rocketeer for deployment and this is how it is setup. Here is the output:
2016-01-10 07:15:21,434 (DEBUG) ee : Command Output: Updating 684ff01..1182dcf
Fast-forward
acme/.pylintrc | 383 +++++++++++++++++++++
acme/acme/challenges.py | 2 +-
acme/acme/crypto_util.py | 2 +-
acme/acme/messages.py | 4 +-
bootstrap/_deb_common.sh | 48 ++-
letsencrypt-apache/letsencrypt_apache/parser.py | 71 +++-
.../tests/apache-conf-files/apache-conf-test | 3 +-
.../letsencrypt_apache/tests/parser_test.py | 2 +-
tox.ini | 2 +-
9 files changed, 485 insertions(+), 32 deletions(-)
create mode 100644 acme/.pylintrc
,
Command Error: From https://github.com/letsencrypt/letsencrypt
684ff01..1182dcf master -> origin/master
* [new branch] earlier-renewal -> origin/earlier-renewal
77ec944..3c70af7 non-interactive -> origin/non-interactive
b1e67f2..3cddb15 pyopenssl -> origin/pyopenssl
2016-01-10 07:15:21,434 (DEBUG) ee : Running command: ./letsencrypt-auto certonly --webroot -w /var/www/dericcain.com/htdocs/ -d dericcain.com -d www.dericcain.com --email [email protected] --text --agree-tos
2016-01-10 07:15:34,445 (DEBUG) ee : Command Output: Updating letsencrypt and virtual environment dependencies......
Requesting root privileges to run with virtualenv: /root/.local/share/letsencrypt/bin/letsencrypt certonly --webroot -w /var/www/dericcain.com/htdocs/ -d dericcain.com -d www.dericcain.com --email [email protected] --text --agree-tos
,
Command Error: The webroot plugin is not working; there may be problems with your existing configuration.
The error was: PluginError('/var/www/dericcain.com/htdocs/ does not exist or is not a directory',)
2016-01-10 07:15:34,446 (ERROR) ee : Unable to setup, Let's Encrypt
2016-01-10 07:15:34,447 (ERROR) ee : Please make sure that your site is pointed to
same server on which you are running Let's Encrypt Client
to allow it to verify the site automatically.
2016-01-10 10:21:00,783 (DEBUG) ee : logging initialized for 'ee' using LoggingLogHandler
2016-01-10 10:21:01,062 (DEBUG) ee : ['/usr/local/bin/ee', 'site', 'update', 'dericcain.com', '--letsencrypt']
2016-01-10 10:21:01,062 (DEBUG) ee : collecting arguments/commands for <ee.cli.controllers.base.EEBaseController object at 0x7f69e2cf9f28>
2016-01-10 10:21:01,064 (DEBUG) ee : collecting arguments/commands for <ee.cli.plugins.site.EESiteController object at 0x7f69e2d08438>
2016-01-10 10:21:01,066 (DEBUG) ee : collecting arguments/commands for <ee.cli.plugins.site.EESiteUpdateController object at 0x7f69e2d08b38>
2016-01-10 10:21:01,070 (INFO) ee : Initializing EasyEngine Database
2016-01-10 10:21:01,080 (INFO) ee : Letsencrypt is currently in beta phase.
Do you wish to enable SSl now for dericcain.com?
2016-01-10 10:21:03,477 (DEBUG) ee : Changing directory to /opt/letsencrypt
2016-01-10 10:21:03,478 (DEBUG) ee : Running command: git pull
2016-01-10 10:21:03,840 (DEBUG) ee : Command Output: Updating 1182dcf..3cddb15
Fast-forward
.travis.yml | 2 ++
acme/acme/challenges.py | 9 +++++++-
acme/acme/challenges_test.py | 4 ++--
acme/acme/crypto_util.py | 45 ++++++++++++++++++-------------------
acme/acme/crypto_util_test.py | 39 +++++++++++++++++++++++++++-----
acme/acme/jose/json_util.py | 4 ++--
acme/acme/jose/json_util_test.py | 4 ++--
acme/acme/jose/jws.py | 2 +-
acme/acme/jose/jws_test.py | 11 +++++----
acme/acme/jose/util.py | 31 ++++++++++++++++---------
acme/acme/jose/util_test.py | 21 +++++++++--------
acme/acme/messages_test.py | 4 ++--
acme/acme/standalone_test.py | 4 ++--
acme/acme/test_util.py | 16 +++++++++----
acme/acme/testdata/cert-100sans.pem | 44 ++++++++++++++++++++++++++++++++++++
acme/acme/testdata/cert-idnsans.pem | 30 +++++++++++++++++++++++++
acme/acme/testdata/csr-100sans.pem | 41 +++++++++++++++++++++++++++++++++
acme/acme/testdata/csr-idnsans.pem | 27 ++++++++++++++++++++++
acme/setup.py | 5 +++--
letsencrypt-apache/setup.py | 1 +
letsencrypt-nginx/setup.py | 1 +
letsencrypt/cli.py | 2 +-
letsencrypt/client.py | 4 ++--
letsencrypt/crypto_util.py | 2 +-
letsencrypt/plugins/standalone.py | 2 +-
letsencrypt/renewer.py | 2 +-
letsencrypt/tests/cli_test.py | 4 ++--
letsencrypt/tests/client_test.py | 6 ++---
letsencrypt/tests/renewer_test.py | 7 ++++--
letsencrypt/tests/test_util.py | 16 +++++++++----
setup.py | 1 +
tox.ini | 9 +++++++-
32 files changed, 309 insertions(+), 91 deletions(-)
create mode 100644 acme/acme/testdata/cert-100sans.pem
create mode 100644 acme/acme/testdata/cert-idnsans.pem
create mode 100644 acme/acme/testdata/csr-100sans.pem
create mode 100644 acme/acme/testdata/csr-idnsans.pem
,
Command Error: From https://github.com/letsencrypt/letsencrypt
1182dcf..3cddb15 master -> origin/master
2016-01-10 10:21:03,841 (DEBUG) ee : Running command: ./letsencrypt-auto certonly --webroot -w /var/www/dericcain.com/htdocs/ -d dericcain.com -d www.dericcain.com --email [email protected] --text --agree-tos
2016-01-10 10:21:19,205 (DEBUG) ee : Command Output: Updating letsencrypt and virtual environment dependencies......
Requesting root privileges to run with virtualenv: /root/.local/share/letsencrypt/bin/letsencrypt certonly --webroot -w /var/www/dericcain.com/htdocs/ -d dericcain.com -d www.dericcain.com --email [email protected] --text --agree-tos
IMPORTANT NOTES:
- The following 'urn:acme:error:unauthorized' errors were reported by
the server:
Domains: dericcain.com, www.dericcain.com
Error: The client lacks sufficient authorization
,
Command Error: Failed authorization procedure. dericcain.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://dericcain.com/.well-known/acme-challenge/ADC6a5yg8s4IzxPhdgAOVQ0haUJy8fddBz8mrLYwjmo [104.131.56.118]: 404, www.dericcain.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.dericcain.com/.well-known/acme-challenge/wXqkSGZwaoIZsa6IRE8QyKluEsY7Rcq-Ygulwg5iFCo [104.131.56.118]: 404
Okay, I got it to work. The trick is not to delete the webroot that EE creates. I deleted my site and recreated it and just changed the nginx config to point to the directory that I need it to point to, after installing the SSL, and everything works as it should.
There's another issue related to --le that can happen if you've added --le to a site, then removed it or deleted the site and tried to recreate the site on the same server. I'm opening another ticket as it may be a seperate issue from yours - though I have a feeling they're related.
If anyone else wants to know a workaround for this, just create a symlink that links the .well-known folder to the root folder of your site/application. This way letsencrypt can verify the site when it's not in the default folder that EE uses out of the box.
try with sudo command
Hi, The same problemwhere:
` Domain: www.externatorainhadonaamelia.pt
Type: connection
Detail: DNS problem: SERVFAIL looking up CAA for
www.externatorainhadonaamelia.pt `
And both DNS pointing corretly. Any clue? Thanks
These can resolve the SERVERFAIL? https://sslmate.com/caa/ And add a CAA record?
Ok
CAA records added
The problem is thesame...

And from DNS CAA Tester
Is OK
Any clue?!
Or i need add CAA record with www to?
Come on someone help out. Still need a fix for this.