sudo certbot --nginx -d sun.narola.online -d www.sun.narola.online --redirect
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Requesting a certificate for sun.narola.online and www.sun.narola.online
Performing the following challenges:
http-01 challenge for sun.narola.online
http-01 challenge for www.sun.narola.online
Using default address 80 for authentication.
Using default address 80 for authentication.
Waiting for verification...
Challenge failed for domain sun.narola.online
Challenge failed for domain www.sun.narola.online
http-01 challenge for sun.narola.online
http-01 challenge for www.sun.narola.online
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: sun.narola.online
Type: unauthorized
Detail: Invalid response from
http://sun.narola.online/.well-known/acme-challenge/JVKW31fKOnGOA9SeE6QUxYxEZM_JJR48GCrkOuIVlec
[203.109.68.198]: "\n\n404 Not
Found\n\nNot Found
\n<p"Domain: www.sun.narola.online
Type: unauthorized
Detail: Invalid response from
http://www.sun.narola.online/.well-known/acme-challenge/8zEmG4ONmnzXOFLvJfZxNc5FaceV7ei9_gbg_XAmG3U
[203.109.68.198]: "\n\n404 Not
Found\n\nNot Found
\n<p"To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address
Reference :- "Some challenges have failed." when using Certbot
for above Issue i have Search and get solution but check your domain with "https://check-your-website.server-daten.de/"
So i have a check for my domain and get below result but not understand what the issue with domain.
sun.narola.online - Make your website better - DNS, redirects, mixed content, certificates