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: test.planetbeyondapps.com
I ran this command: certbot renew --cert-name test.pla.com -v
It produced this output: Saving debug log to /var/log/letsencrypt/letsencrypt.log
Processing /etc/letsencrypt/renewal/test.pla.com.conf
Certificate not yet due for renewal
The following certificates are not due for renewal yet:
/etc/letsencrypt/live/test.pla.com/fullchain.pem expires on 2024-10-22 (skipped)
No renewals were attempted.
[root@nginx-rh8-dmz-235 ~]# certbot renew --cert-name test.pla.com -v
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Processing /etc/letsencrypt/renewal/test.pla.com.conf
Certificate is due for renewal, auto-renewing...
Plugins selected: Authenticator nginx, Installer nginx
Renewing an existing certificate for test.pla.com
Performing the following challenges:
http-01 challenge for test.pla.com
Waiting for verification...
Challenge failed for domain test.pla.com
http-01 challenge for test.pla.com
Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: test.pla.com
Type: unauthorized
Detail: 117.20.23.229: Invalid response from https://test.pla.com/.well-known/acme-challenge/G-EF_WuwuxdhVvl_qXVTJFS7nuTW2WhR-jfQop1naf0: 404
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
Failed to renew certificate test.pla.com with error: Some challenges have failed.
All renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/test.pla.com/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
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 version 1.22.0. Compiled from source.
The operating system my web server runs on is (include version): Red Hat Enterprise Linux release 8.9 (Ootpa)
My hosting provider, if applicable, is: NA
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): certbot 1.22.0
My domain config is as below
cat /etc/nginx/conf.d/test.pla.com.conf
server {
server_name test.pla.com;
access_log /var/log/nginx/test.pla.com.access.log main;
include include/error.conf;
###### For LEtsencrypt Certificates ########
location /.well-known/acme-challenge {
alias /var/www/html/.well-known/acme-challenge;
try_files $uri =404;
default_type text/plain; # Ensure files are served as plain text
}
###########################################
location / {
proxy_pass http://192.168.0.244:9001/;
include include/proxy.conf;
}
}
It think that challenge files is not being written on /var/www/html/.well-known/acme-challenge/ or may be any thing else. Because when i run the certbot renew --cert-name demo.highersummit.com it did not create any file in acme-challenge directory as monitored by below command.
watch -n 1 ls -lh /var/www/html/.well-known/acme-challenge/
Also check no permission issue. directory is with 755 and nginx:nginx ownership. Verified from below command.
sudo -u nginx touch /var/www/html/.well-known/acme-challenge/testfile
echo "test-acme" | sudo tee /var/www/html/.well-known/acme-challenge/testfile
I am able to access it browser with the required URL
https://demo.highersummit.com/.well-known/acme-challenge/testfile (accessible - can be verified)
Even i manually place the file mentioned in the error "G-EF_WuwuxdhVvl_qXVTJFS7nuTW2WhR-jfQop1naf0" can be accessible on https://demo.highersummit.com/.well-known/acme-challenge/G-EF_WuwuxdhVvl_qXVTJFS7nuTW2WhR-jfQop1naf0.
Dont know why letsencrypt is unbale to validating the challenge for my domain. I have multiple domains and facing same issue.
Please looking for support. Thank you.