Hi,
Find below the asked details, certbot claims there is an issue when check nginx config file, however if I run the same command "nginx -c /etc/nginx/nginx.conf -t" I get the output
sudo nginx -c /etc/nginx/nginx.conf -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
My domain is:
hptm.eu
dev.hptm.eu
I ran this command:
sudo certbot renew
It produced this output:
[alex@dev-hptm renewal]$ sudo certbot renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Processing /etc/letsencrypt/renewal/dev.hptm.eu.conf
Error while running nginx -c /etc/nginx/nginx.conf -t.
nginx: [emerg] SSL_CTX_new() failed (SSL: error:0A0000A1:SSL routines::library has no ciphers)
nginx: configuration file /etc/nginx/nginx.conf test failed
Failed to renew certificate dev.hptm.eu with error: The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError('Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [emerg] SSL_CTX_new() failed (SSL: error:0A0000A1:SSL routines::library has no ciphers)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n')
Processing /etc/letsencrypt/renewal/hptm.eu.conf
Error while running nginx -c /etc/nginx/nginx.conf -t.
nginx: [emerg] SSL_CTX_new() failed (SSL: error:0A0000A1:SSL routines::library has no ciphers)
nginx: configuration file /etc/nginx/nginx.conf test failed
Failed to renew certificate hptm.eu with error: The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError('Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [emerg] SSL_CTX_new() failed (SSL: error:0A0000A1:SSL routines::library has no ciphers)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n')
All renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/dev.hptm.eu/fullchain.pem (failure)
/etc/letsencrypt/live/hptm.eu/fullchain.pem (failure)
2 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.
[alex@dev-hptm renewal]$
My web server is (include version):
nginx/1.20.1
The operating system my web server runs on is (include version):
Linux version 5.14.0-362.13.1.el9_3.x86_64 (mockbuild@x64-builder01.almalinux.org) (gcc (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2), GNU ld version 2.35.2-42.el9) #1 SMP PREEMPT_DYNAMIC Thu Dec 21 07:12:43 EST 2023
My hosting provider, if applicable, is:
DigitalOcean
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 3.1.0