(dv) 4.0:Fix PleskFatalException SSL installation error

  • This page was last modified on January 9, 2012, at 17:38.
The (mt) Community Wiki is a collaborative project. Any (mt) Media Temple customer or employee may contribute. Not all articles and/or content have been tested for accuracy by (mt) Media Temple.

For officially moderated and tested articles, be sure to visit our KnowledgeBase.

From (mt) Community Wiki

Contents

The Bug

There is a bug that affects some users of Plesk 10.3.1, which rears its head only when installing an SSL certificate. When it occurs, you'll see the following error inside Plesk:

ERROR: PleskFatalException
SSLCertificate::check_signs() failed: openssl_x509_checkpurpose() failed:

0: CertificatePropertiesUIPointer.php:454
CertificatePropertiesUIPointer->accessItemEdit(string 'POST', NULL null)
1: CertificatePropertiesUIPointer.php:19
CertificatePropertiesUIPointer->accessItem(string 'POST', NULL null)
2: UIPointer.php:595
UIPointer->access(string 'POST')
3: plesk.php:52

The Fix

  1. Log into the (dv) Dedicated-Virtual Server via SSH as the root user.
  2. Run the following command:
    up
  3. This command will apply a series of "micro-updates" to your Plesk 10.3.1 installation, and can take a 3-5 minutes to complete.
  4. Once done you can log back into Plesk and finish the SSL installation.

Outdated Fix

This fix is no longer needed, but is being kept for archival reasons.

The bug is related to a problem with the "SSLCertificate.php" file on the server, which isn't really very obvious from the error message Plesk provides! Thankfully even though this error looks scary, it is pretty easy to fix via SSH.

  1. Log into the (dv) Dedicated-Virtual Server via SSH as the root user.
  2. Run the following commands:
    cd /usr/local/psa/admin/plib/
    mv SSLCertificate.php SSLCertificate.php-mt_backup
    wget http://kb.parallels.com/Attachments/17521/Attachments/SSLCertificate.zip
    unzip SSLCertificate.zip
    rm SSLCertificate.zip
    

    Or you can just do it as one large single line command:

    cd /usr/local/psa/admin/plib/ && mv SSLCertificate.php SSLCertificate.php-mt_backup && wget http://kb.parallels.com/Attachments/17521/Attachments/SSLCertificate.zip && unzip SSLCertificate.zip && rm SSLCertificate.zip
    
  3. Log back into Plesk and finish the SSL installation.

External Links

KB Parallels: Unable to upload new SSL certificate due to error
How do I enable root access to my (dv)?
Connecting via SSH to your server