OpenSSL "gendsa -des" - DES Encrypt DSA Keys

Q

How to generate a new DSA key pair and encrypt the output with a DES password using OpenSSL "gendsa" command?

✍: FYIcenter.com

A

If you want to secure your new DSA private key with a DES encryption, you can use the OpenSSL "gendsa -des" command as shown below:

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

OpenSSL> gendsa -out my_dsa_2048_des.key -des my_dsa_2048.prm
Generating DSA key, 2048 bits
Enter PEM pass phrase: fyicenter
Verifying - Enter PEM pass phrase: fyicenter

Options used in this command are:

  • "-out my_dsa_2048_des.key" - Save output (the new DSA private and public key) in a file.
  • "-des" - Encrypt the output with DES algorithm.
  • "my_dsa_2048.prm" - DSA key generation parameters.
  • "fyicenter" - The password of the DES encryption.

 

OpenSSL "dsa" - Open Encrypted DSA Keys

OpenSSL "gendsa 10240" - Generate DSA Long Keys

OpenSSL "gendsa" and "dsa" Commands

⇑⇑ OpenSSL Tutorials

2016-12-18, 659👍, 0💬