Hi, I've an issue with one of my subdomain. On the same server, I use letsencrypt for a while but when I wanted to create another certificate this last week, it failed (see details below)
I'm wondering if something changed on letsencrypt or NGINX behavior because I have a dozen certificates on this server and if you test both domains jellyfin-test.ehretic.fr and jellyfin.ehretic.fr you will see that the "non-test" instance works and already have a LetsEncrypt certificate.
I run the same command in previous certificate requests without any issue. Nothing changed in my configurations except the new server block added for this new instance.
I've automatic redirection of port 80 to 443 on the NGINX box with this:
# Redirect all HTTP traffic to HTTPS
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
My domain is: jellyfin-test.ehretic.fr
I ran this command: certbot --nginx -d jellyfin-test.ehretic.fr -v
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Requesting a certificate for jellyfin-test.ehretic.fr
Performing the following challenges:
http-01 challenge for jellyfin-test.ehretic.fr
Waiting for verification...
Challenge failed for domain jellyfin-test.ehretic.fr
http-01 challenge for jellyfin-test.ehretic.fr
Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: jellyfin-test.ehretic.fr
Type: connection
Detail: During secondary validation: 80.13.195.192: Fetching http://jellyfin-test.ehretic.fr/.well-known/acme-challenge/ZiwwOke8k9xWpGv8gCjNTq9BpkQSDRZWdKz7ID10sDA: Timeout during connect (likely firewall problem)
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
Running post-hook command: systemctl reload nginx
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@srv-rpxy-01 ~]# vi /etc/nginx/nginx.conf
[root@srv-rpxy-01 ~]# certbot --nginx -d jellyfin-test.ehretic.fr -v
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Requesting a certificate for jellyfin-test.ehretic.fr
Performing the following challenges:
http-01 challenge for jellyfin-test.ehretic.fr
Waiting for verification...
Challenge failed for domain jellyfin-test.ehretic.fr
http-01 challenge for jellyfin-test.ehretic.fr
Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: jellyfin-test.ehretic.fr
Type: connection
Detail: During secondary validation: 80.13.195.192: Fetching http://jellyfin-test.ehretic.fr/.well-known/acme-challenge/uCzcvGgDbuLrVjFsZaug50qFBIZGCpKBsISWUKV6SsU: Timeout during connect (likely firewall problem)
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
Running post-hook command: systemctl reload nginx
Some challenges have failed.
My web server is (include version): nginx/1.25.4
The operating system my web server runs on is (include version): Almalinux 8.9
My hosting provider, if applicable, is: myself
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
Thanks a lot for your help.