Question

Problem in Apache with Let's Encrypt on Ubuntu

Posted August 15, 2021 58 views
ApacheLet's Encrypt

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#

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.

×
Submit an Answer
1 answer

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