OpenSSL "genpkey -des" - DES Encrypt DH Keys

Q

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

✍: FYIcenter.com

A

If you want to secure your new DH 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_dh.prm -out my_dh_des.key -des
Enter PEM pass phrase: fyicenter
Verifying - Enter PEM pass phrase: fyicenter

Options used in this command are:

  • "-paramfile my_dh.prm" - Use DH key generation parameters stored in a file.
  • "-out my_dh_des.key" - Save output (the new DH 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 DH Keys

OpenSSL "genpkey dh_paramgen_generator:3" - DH Param Generator

OpenSSL "genpkey" Command for DH Keys

⇑⇑ OpenSSL Tutorials

2017-08-21, 1552👍, 0💬