My user is trying to install a certificate and key on the site and gets the following error: Invalid certificate format, file: server.key
To install your certificate and key on your site, you need to remove encryption and enter it in clear-text format. Encryption can be removed with the OpenSSL utility of Unix Shell on any Unix server where OpenSSL utilities pack is installed, for example on the Control Panel box.
1. Put you encrypted Private Key into a separate file and save it as server_old.key
2. In Unix Shell, execute the following command: openssl rsa -in server_old.key -out server.key
3. Enter the password when prompted.
4. A new file (server.key) will be generated. It will contain the Private Key in a plain text format.
Leave a Reply
You must be logged in to post a comment.