Question

Can't generate Let's encrypt certificate for Nginx: "Error getting validation data"

Hello. I’ve been trying to generate a Let’s encrypt certificate, on my “Leslieville” droplet (following this guide) but without success.

While running this command,

sudo certbot --nginx -d etiennebaque.com -d www.etiennebaque.com

I got the following error:

Failed authorization procedure. etiennebaque.com (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Error getting validation data, www.
etiennebaque.com (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Error getting validation data

DNS for etiennebaque.com is hosted on Dreamhost. I checked the A record there, it has the correct droplet IP address in it.

I don’t know what to do now, so some help would be very much appreciated.

Many thanks, Etienne

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Something else I did since my last message: I pointed Dreamhost to Digitalocean for that domain name (ns1/2/3.digitalocean.com), and created the relevant A records from the DO panel to point to the relevant droplet.

That said, the same error occurs and I don’t know what could be done at this point to solve this problem.