Question

Problem in Apache with Let's Encrypt on Ubuntu

root@test-live:/etc/apache2/conf-available# certbot --apache Saving debug log to /var/log/letsencrypt/letsencrypt.log

Which names would you like to activate HTTPS for?


1: erp.sevenrocks.in 2: www.erp.sevenrocks.in 3: test-live.sevenrocks.in 4: www.test-live.sevenrocks.in


Select the appropriate numbers separated by commas and/or spaces, or leave input blank to select all options shown (Enter ‘c’ to cancel): 1,2 Requesting a certificate for erp.sevenrocks.in and www.erp.sevenrocks.in

Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems: Domain: www.erp.sevenrocks.in Type: dns Detail: DNS problem: NXDOMAIN looking up A for www.erp.sevenrocks.in - check that a DNS record exists for this domain

Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.

Some challenges have failed. Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details. root@test-live:/etc/apache2/conf-available#


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.

Hello,

The error that you are getting indicates that you do not have a DNS record for the www version of that specific domain.

You could do one of the following:

  • If you do not use the www version, you could issue an SSL for the non-www version only

  • If you need the www version, then you need to add a CNAME record for your www version to point to your domain:

https://docs.digitalocean.com/products/networking/dns/how-to/manage-records/

Regards, Bobby