We own the domain and it is correctly pointed at this server's A record. Traffic does reach the correct vhost. It appears that in the log the correct changes are made to the nginx temporary config, but it doesn't appear that it is loaded by nginx prior to the LE verification. The 404s are in the error log as if it is looking for the file within the vhosts's dir. Fails whether or not we are advertising IPv6 in the vhost def.
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:
dev.worldbuild.ai
I ran this command:
/usr/bin/certbot --nginx -v
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Which names would you like to activate HTTPS for?
....
30: dev.worldbuild.ai
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 30
Requesting a certificate for dev.worldbuild.ai
Performing the following challenges:
http-01 challenge for dev.worldbuild.ai
Waiting for verification...
Challenge failed for domain dev.worldbuild.ai
http-01 challenge for dev.worldbuild.ai
Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: dev.worldbuild.ai
Type: unauthorized
Detail: Invalid response from https://dev.worldbuild.ai/.well-known/acme-challenge/NN6TAb4oZo3hdITbo-Ns9p3rtNGi-rT-eEvPAHq_cN0 [45.79.80.150]: "\r\n404 Not Found\r\n\r\n
404 Not Found
\r\nnginx/1.20.1</ce"
Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx 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.
My web server is (include version):
Nginx 1.20.1
The operating system my web server runs on is (include version):
CentOS 8.4.2105
My hosting provider, if applicable, is:
Linode
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):
No
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): 1.20.0