- Plesk for Linux
Certificate uploading for a domain in Plesk fails with an error:
PLESK_ERROR: Error: Unable to set the private key: Probably, the private key format is invalid
/var/log/plesk/panel.logcontains the following error:
PLESK_INFO: [2018-02-04 19:33:51] ERR [panel] Unable to set the private key: Probably, the private key format is invalid.
Private key file (
.key) contains the following string:
CONFIG_TEXT: -----BEGIN ENCRYPTED PRIVATE KEY-----
Certificate private key is encrypted.
- Connect to the server via SSH;
- Upload a
.keyfile to the server or locate it (for example, its name is
opensslutility to decrypt the
# openssl rsa -in encrypted_private.key -out decrypted_private.key
Note: To decrypt the key a passphrase that was entered while creating the key is required, it will be requested by
Use the new decrypted
decrypted_private.key) to upload an SSL certificate in Plesk. Refer to the article How to install SSL certificate for a domain in Plesk for more details.