- Plesk for Linux
Certificate uploading to Plesk fails with error:
PLESK_ERROR: Unable to set the private key: Probably, the private key format is invalid
Private Key in the .key file contains the following string:
CONFIG_TEXT: -----BEGIN ENCRYPTED PRIVATE KEY-----
The following error message appears in the Plesk logfile
CONFIG_TEXT: ERR [panel] Unable to set the private key: Probably, the private key format is invalid.
Certificate Private Key part is encrypted.
Connect to the Plesk server via SSH.
Upload a .key file to the server.
Decrypt the .key file using the
# openssl rsa -in my_encrypted.key -out my_decrypted.key
- my_encrypted.key - is an uploaded file from step 2
- my_decrypted.key - a decrypted file that will be created
Note: To decrypt the key, a passphrase that was entered upon creating the key is required. It will be requested by
Use the new decrypted .key file (In this example, my_decrypted.key) to upload an SSL certificate in Plesk.