Symptoms
-
The following error is shown in Plesk:
Template_Exception: nginx: [emerg] cannot load certificate "/usr/local/psa/var/certificates/XXXX": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/psa/var/certificates/scfcUPC5w','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed -
Cannot start nginx:
# service nginx restart
Restarting nginx (via systemctl): Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
Cause
Corrupted SSL certificate.
Resolution
-
Connect to the server via SSH
-
Repair the SSL certificates:
# plesk repair web -sslcerts