After upgrading to Plesk 12.5 from 12.0.18, some of the certificates are missing.
I ran
I tracked the configuration file and the domain in question has it's own SSL certificate, but in /opt/psa/var/certificates the file is missing.
How can I regenerate this files?
Or even fix them.
I tried running plesk repair all, but it didn't fix the problem.
I ran
Code:
# /usr/local/psa/admin/sbin/httpdmng --reconfigure-server
# nginx -t
nginx: [emerg] BIO_new_file("/opt/psa/var/certificates/cert-T5CvaQ") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/opt/psa/var/certificates/cert-T5CvaQ','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed
I tracked the configuration file and the domain in question has it's own SSL certificate, but in /opt/psa/var/certificates the file is missing.
How can I regenerate this files?
Or even fix them.
Code:
# grep -hr "ssl_certificate" /var/www/vhosts/system | sort | uniq -c
35 ssl_certificate_key /opt/psa/var/certificates/cert-4YU1xi;
1 ssl_certificate_key /opt/psa/var/certificates/cert-cl8U3l;
12 ssl_certificate_key /opt/psa/var/certificates/cert-RXFhan;
2 ssl_certificate_key /opt/psa/var/certificates/cert-T5CvaQ;
1 ssl_certificate_key /opt/psa/var/certificates/cert-WbsLZ6;
35 ssl_certificate /opt/psa/var/certificates/cert-4YU1xi;
1 ssl_certificate /opt/psa/var/certificates/cert-cl8U3l;
12 ssl_certificate /opt/psa/var/certificates/cert-RXFhan;
2 ssl_certificate /opt/psa/var/certificates/cert-T5CvaQ;
1 ssl_certificate /opt/psa/var/certificates/cert-WbsLZ6;
Code:
# ls -laH /opt/psa/var/certificates
total 80K
drwxr-xr-x 2 root root 4.0K Oct 18 03:34 .
drwxr-xr-x 12 psaadm psaadm 4.0K Oct 17 21:59 ..
-rw-r--r-- 1 root root 3.0K Oct 18 03:21 cert-4YU1xi
-rw-r--r-- 1 root root 7.6K Oct 18 03:21 cert-cl8U3l
-rw-r--r-- 1 root root 5.5K Oct 18 03:21 cert-D2IfBN
-rw-r--r-- 1 root root 4.1K Oct 18 03:21 cert-jQHCHk
-rw-r--r-- 1 root root 9.1K Oct 18 03:21 cert-Oolw3c
-rw-r--r-- 1 root root 5.5K Oct 18 03:21 cert-r9h9L2
-rw-r--r-- 1 root root 3.0K Oct 18 03:32 cert-RXFhan
-rw-r--r-- 1 root root 11K Oct 18 03:21 cert-WbsLZ6
-rw-r--r-- 1 root root 3.0K Oct 18 03:21 cert-Whdr8E
-rw-r--r-- 1 root root 3.0K Oct 18 03:34 cert-XKGZH0
I tried running plesk repair all, but it didn't fix the problem.