Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: www.impossiblecreatures.com
I ran this command: sudo certbot certonly --webroot -w /var/www/certbot -d impossiblecreatures.com -d www.impossiblecreatures.com --debug-challenges
It produced this output: Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for impossiblecreatures.com and www.impossiblecreatures.com
Challenges loaded. Press continue to submit to CA.
Pass "-v" for more info about challenges.
Press Enter to Continue
Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: impossiblecreatures.com
Type: unauthorized
Detail: 2a02:4780:b:1106:0:96b:6224:2: Invalid response from http://impossiblecreatures.com/.well-known/acme-challenge/tMGHExVlJUVhaiBq0i-nUD5YfGYPqej51Jxmbsl5HCU: 404
Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded 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@srv551730:~#
My web server is (include version): Node.js v16.20.2
The operating system my web server runs on is (include version): Ubuntu 22.04 with CloudPanel VPS
My hosting provider, if applicable, is: Hostinger
I can login to a root shell on my machine (yes or no, or I don't know): Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): CloudPanel
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot 2.11.0
Hello, I've encountered an issue while trying to issue a Let's Encrypt certificate using Certbot's webroot plugin on an Ubuntu server managed via CloudPanel. I have ensured the webroot directory is accessible over the internet, and a test file in the .well-known/acme-challenge/ directory can be accessed without any issue.
Problem:
When running the command:
sudo certbot certonly --webroot -w /var/www/certbot -d impossiblecreatures.com -d www.impossiblecreatures.com --debug-challenges
Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: impossiblecreatures.com
Type: unauthorized
Detail: Invalid response from http://impossiblecreatures.com/.well-known/acme-challenge/: 404
The complete response:
Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: impossiblecreatures.com
Type: unauthorized
Detail: 2a02:4780:b:1106:0:96b:6224:2: Invalid response from http://impossiblecreatures.com/.well-known/acme-challenge/tMGHExVlJUVhaiBq0i-nUD5YfGYPqej51Jxmbsl5HCU: 404
Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded 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@srv551730:~#
I've also Placed a test.txt file in /var/www/certbot/.well-known/acme-challenge/ which is accessible via http://impossiblecreatures.com/.well-known/acme-challenge/test.txt
Attempted to issue a certificate using the webroot method also.
Configuration:
Webroot Path: /var/www/certbot
Nginx Configuration for Webroot:
location ^~ /.well-known/acme-challenge/ {
root /var/www/certbot;
allow all;
}
Additional Context:
I am able to see the challenge file created by Certbot in the webroot directory before it is cleaned up post-challenge failure, ie in debug mode, i also was able to point to this in the chrome browser and download it, sugggesting there's no issues seeing and accessing it, ie permissions, DNS issues etc
The domain is pointing correctly to the server, and there are no visible issues with DNS configurations.
The Nginx server blocks for HTTP and HTTPS are configured correctly to redirect and handle SSL requests.
What I Need Help With:
Understanding why Let's Encrypt cannot access the challenge file.
Any additional configurations or steps I might have missed that could resolve this issue.
Various paths:
sftp://root@157.173.210.7/var/log/letsencrypt/letsencrypt.log
sftp://root@157.173.210.7/var/www/certbot/.well-known/acme-challenge/test.txt
sftp://root@157.173.210.7/home/impossiblecreatures/htdocs/impossiblecreatures.com/index.html
sftp://root@157.173.210.7/etc/nginx/sites-available/impossiblecreatures.com.conf
sftp://root@157.173.210.7/etc/nginx/nginx.conf
See the followingfiles which includes the NGINX.conf and impossiblecreatures.conf from available sites, logs and so forth among other information that might be useful to see.
https://drive.google.com/drive/folders/1xasLxFKDNIZDAdVFwH1GrQnJo3VjGIVl?usp=sharing
This could be complete user error on my part, I feel i have a sound understanding of the concepts, but maybe im overlooking something. still learning!
Thank you kindly!
David