OpenSSL "genpkey -des" - DES Encrypt EC Keys

Q

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

✍: FYIcenter.com

A

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

Options used in this command are:

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

OpenSSL "ecparam -list_curves" - List of EC Curves

OpenSSL "genpkey" Command for EC Keys

⇑⇑ OpenSSL Tutorials

2017-06-23, 899👍, 0💬