Archiv der Kategorie: Plesk

Fix „SSLCertificateFile: file ‚…‘ does not exist or is empty“

After updating a certificate in Plesk I got the error message:

New configuration files for the Apache web server were not created due to the errors in configuration templates:
Syntax error on line 50 of /etc/apache2/plesk.conf.d/vhosts/xxx.conf: SSLCertificateFile: file ‚/opt/psa/var/certificates/cert-xxx‘ does not exist or is empty .

Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files

To fix this:

  1. Log into your server using ssh
  2. cd /opt/psa/var/certificates/
  3. Determine the new name of the certificate (first output of ls -lt) e.g. cert-yyyyy
  4. Create the missing certificate: cp cert-yyyyy cert-xxxxx
  5. Click on the link in the error message to regenerate all configuration files.

The error message should disappear.