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


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.



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


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:
Verifying - Enter PEM pass phrase:

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.
  • "" - 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, 2376👍, 0💬