CANNOT Install Let's Encrypt Certificate For Some Reason...


I’m trying to install the Let’s Encrypt certificate on my domain using Virtualmin, but I keep getting the following error message:

Requesting a certificate for from Let's Encrypt ..
.. request failed : Web-based validation failed : Failed to request certificate :
Traceback (most recent call last):  File "/usr/share/webmin/webmin/", line 198, in <module>    main(sys.argv[1:])  File "/usr/share/webmin/webmin/", line 194, in main    signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER,, disable_check=args.disable_check, directory_url=args.directory_url,  File "/usr/share/webmin/webmin/", line 143, in get_crt    raise ValueError("Wrote file to {0}, but couldn't download {1}: {2}".format(wellknown_path, wellknown_url, e))ValueError: Wrote file to /home/aaronestebancoaching/public_html/.well-known/acme-challenge/MoG3aaTNE3M1-xqWYcGT4JuAuZW2Rf_u57CkDePECdQ, but couldn't download Error:Url: NoneResponse Code: 404Response: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p></body></html>
DNS-based validation failed : 

Neither DNS zone or any of its sub-domains exist on this system

The error on the Virtualmin panel.

Does anyone happen to know what is most likely causing this issue? I’d greatly appreciate your support.

Regards, Aaron E.

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.

Hi @AaronEsteban1,

It looks like that your domain name does not have a valid DNS zone.

Basically in order for Let’s Encrypt to be able to issue an SSL certificate for your domain name it needs to validate that you actually own the domain name, so in order to do that Let’s Encrypt checks your domain name’s DNS zone and makes sure that your A record matches your server’s IP address.

So this would mean that you need to first register your domain name, make sure that your DNS records for your www and your non-www versions are pointing to the Droplet’s IP address and then run the SSL validation again.

Hope that this helps! Regards, Bobby

Hi @bobbyiliev,

I have encountered this issue as well. May I know is this issue solved?

Thanks, Joseph

Today I also encountered this problem , The solution is tool cannot verify the file stored in acme directory. Solution is open ssh / terminal

sudo nano /etc/hosts/

next is point your ip and sever example

Reboot machine if you wish.

Now try again it will work

Good luck