Hello,
I tried two things to setup letsencrypt for my website, but it is not working.
I have my domain with namecheap.
I have added the following A records in Advanced DNS:
A Record --- iqnesstech.com --- 3.110.155.46 (Public IP) -- Automatic (TTL)
A Record --- www.iqnesstech.com --- 3.110.155.46 (Public IP) -- Automatic (TTL)
I am running Ubuntu 22.04 EC2 instance with apache2 running.
Following are the 2 commands I tried.
- sudo certbot --apache -v
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Which names would you like to activate HTTPS for?
1: iqnesstech.com
2: www.iqnesstech.com
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 iqnesstech.com and www.iqnesstech.com
Performing the following challenges:
http-01 challenge for iqnesstech.com
http-01 challenge for www.iqnesstech.com
Waiting for verification...
Challenge failed for domain iqnesstech.com
Challenge failed for domain www.iqnesstech.com
http-01 challenge for iqnesstech.com
http-01 challenge for www.iqnesstech.com
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: iqnesstech.com
Type: dns
Detail: no valid A records found for iqnesstech.com; no valid AAAA records found for iqnesstech.com
Domain: www.iqnesstech.com
Type: dns
Detail: no valid A records found for www.iqnesstech.com; no valid AAAA records found for www.iqnesstech.com
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.
- sudo certbot certonly --manual --preferred-challenges dns
Certbot failed to authenticate some domains (authenticator: manual). The Certificate Authority reported these problems:
Domain: iqnesstech.com
Type: dns
Detail: DNS problem: NXDOMAIN looking up TXT for _acme-challenge.iqnesstech.com - check that a DNS record exists for this domain
Domain: www.iqnesstech.com
Type: dns
Detail: DNS problem: NXDOMAIN looking up TXT for _acme-challenge.www.iqnesstech.com - check that a DNS record exists for this domain
Hint: The Certificate Authority failed to verify the manually created DNS TXT records. Ensure that you created these in the correct location, or try waiting longer for DNS propagation on the next attempt.
Appreciate your help in this regard.
Thanks