I renewed a letsencrypt SSL certificate at the beginning of this month. I thought it went well because the OMV webgui specified the expiration date 3 month in the future. The only strange thing was that browsers showed the old expiration date. Yesterday I updated and rebooted the system but systemctl shows me this error message:
Code
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled)
Active: failed (Result: exit-code) since Thu 2018-04-26 19:56:59 CEST; 32s ago
Process: 2716 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Apr 26 19:56:59 openmediavault nginx[2716]: nginx: [emerg] SSL_CTX_use_PrivateKey_file("/etc/ssl/private/openmediavault-b89fac27-d501-467f-89b0-cfeac974bab4.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch)
Apr 26 19:56:59 openmediavault nginx[2716]: nginx: configuration file /etc/nginx/nginx.conf test failed
Apr 26 19:56:59 openmediavault systemd[1]: nginx.service: control process exited, code=exited status=1
Apr 26 19:56:59 openmediavault systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Apr 26 19:56:59 openmediavault systemd[1]: Unit nginx.service entered failed state.
Alles anzeigen
So I checked the private key file and the OMV config.xml but the keys match. I had a similar problem in the past: https://forum.openmediavault.o…?postID=162898#post162898
The first thing I tried was to delete the keys between <sslcertificate> and </sslcertificate> and did a omv-mkconf nginx. It doesn't work. After a reboot I get the same error. Has anybody an idea what it could be. Maybe a problem with permissions?