OpenSSL Removing a Pass-Phrase from a Private Key
Jump to navigation
Jump to search
Removing a Pass-Phrase from a Private Key
- If required follow the OpenSSL Generating a Private Key procedure.
- Create a backup of the original key with the pass-phrase.
- # cp <key_name>_passphrase.key <key_name>_passphrase.key.bk
- Remove the pass-phrase from the private key.
- # openssl rsa -in <key_name>_passphrase.key -out <key_name>.key
- Enter the information as required by the prompts.
- Verify the checksum of the key matches the checksum of the key with the pass-phrase.
- # openssl rsa -noout -modulus -in <key_name>.key | openssl md5
- # openssl rsa -noout -modulus -in <key_name>_passhrase.key | openssl md5