OpenSSL "genpkey -des" - DES Encrypt DSA Keys

Q

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

✍: FYIcenter.com

A

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

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

OpenSSL> genpkey -paramfile my_dsa.prm -out my_dsa_des.key -des
Enter PEM pass phrase: fyicenter
Verifying - Enter PEM pass phrase: fyicenter

Options used in this command are:

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

 

OpenSSL "genpkey" Command for DSA Keys

⇒⇒OpenSSL Tutorials

2017-11-25, 374👍, 0💬