An open collection of noteworthy things


Let’s Encrypt with EasyEngine: Unable to Setup, Let’s Encrypt (Solution)

When creating a site with EasyEngine (or updating one) while trying to get it running with Let’s Encrypt (using the –letsencrypt flag), you may run into the following error:

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 got this error and was quite confused. Though I was using CloudFlare, its proxying mode was disabled (i.e., the grey cloud) – I found out what was causing it though.

When you run ee site update --letsencrypt (or ee site create <args> --letsencrypt), you’ll notice that EasyEngine creates the NGINX config (and listens for) both and – in my case, since I’d been installing on I didn’t need a here. Since EasyEngine will have told Let’s Encrypt to try and verify as well as – something which I hadn’t created a DNS record for – it would fail to get the response it needed at, and give that useless error message.

So the solution to the error is to create records for both the domain/subdomain you’re trying to verify as well as with www. in front of itSo if I were trying to get a certificate in EasyEngine with Let’s Encrypt for, I’d create records for both as well as pointing to my origin.

This will allow Let’s Encrypt to verify your site when EasyEngine makes the request, allowing it to get and install your certificate.