OpenSSL "genpkey -des" - DES Encrypt DSA Keys


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



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:


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 "pkey" - Open Encrypted DSA Keys

OpenSSL "genpkey dsa_paramgen_bits:10240" - DSA Long Keys

OpenSSL "genpkey" Command for DSA Keys

⇑⇑ OpenSSL Tutorials

2017-11-25, 1882🔥, 0💬