Hi All,
i'm running the certbot challenge to get certificate for SSL.
i have followed the following link certbot for apache server .
after following the steps, we are getting error saying the HTTP-01 challenge failed for domain.
To test the Domain for error i used letsdebug.net, all details including errors are given below:
My domain is: itam-blr.cdot.in
I ran this command: sudo certbot --apache -v
It produced this output:
Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
1: itam-blr.cdot.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
Requesting a certificate for itam-blr.cdot.in
Performing the following challenges:
http-01 challenge for itam-blr.cdot.in
Waiting for verification...
Challenge failed for domain itam-blr.cdot.in
http-01 challenge for itam-blr.cdot.in
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.
Cleaning up challenges
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.
That means LE wasn't able to reach your site via HTTP.
You must ensure that the Internet can reach your site via HTTP.
You must NOT have followed that link entirely.
You should have removed the apt version of certbot and then installed the snap version.
Go back and do that part over.
$ nmap -Pn -p80,443 itam-blr.cdot.in
Starting Nmap 7.80 ( https://nmap.org ) at 2024-03-01 17:56 UTC
Nmap scan report for itam-blr.cdot.in (49.128.109.87)
Host is up.
PORT STATE SERVICE
80/tcp filtered http
443/tcp filtered https
Nmap done: 1 IP address (1 host up) scanned in 4.15 seconds
Let's Encrypt does not offer hosting service. Where do you run your servers?
Do connections to your domain allow access from outside your country? Let's Encrypt uses multiple locations to check connections and some will be in the US.
The Let's Debug site you used is good for testing comms and it clearly shows a problem reaching your domain / server.
I also cannot reach your domain from my own test server in US