OpenSSL "dsa -aes*" - Re-Encrypt DSA Keys

Q

How to re-encrypt a DSA key file using OpenSSL "dsa" command? I want to change the encryption password, and maybe change the encryption algorithm.

✍: FYIcenter.com

A

If you want to encrypt an existing DSA key file again, you can use the "dsa -aes*" command as shown below:

C:\Users\fyicenter>\local\openssl\openssl

OpenSSL> dsa -in my_dsa_2048_des.key -out my_dsa_2048_aes -aes128
read DSA key
Enter pass phrase for my_dsa_2048_des.key: fyicenter
writing DSA key
Enter PEM pass phrase: fyicenter.com
Verifying - Enter PEM pass phrase: fyicenter.com

Options used in this command are:

  • "-in my_dsa_2048_des.key" - Read the DSA private key file.
  • "-out my_dsa_2048_aea.key" - Save the output to a file.
  • "-aes128" - Encrypt the output (dsa private key and public key).
  • "fyicenter" - The password of the input key file.
  • "fyicenter.com" - The password of the output key file.

 

OpenSSL "req" Command

OpenSSL "dsa" - Open Encrypted DSA Keys

OpenSSL "gendsa" and "dsa" Commands

⇑⇑ OpenSSL Tutorials

2016-12-15, 2359👍, 0💬