Previous Topic: Generate a Private RSA Key

Next Topic: RSA Key Encryption

RSA Key Decryption

To remove the encryption from a private key, perform the following procedure.

follow these steps:

  1. Make a copy of the encrypted key as a backup, for example:
    cup server.key server.key.org
  2. Enter this command:
    openssl rsa -in server.key.org -out server.key
    

If you specify the output file without a preceding encryption option (that is, -des, -des3, or -idea), then the file is written in plain text, without a prompt for a passphrase.

Important! The availability of an unencrypted key on your system makes your system vulnerable to impersonation on the Internet. Verify that this file has the appropriate permissions, that is, readable only by root on UNIX, or Administrator on Windows.