OpenSSL "genpkey -des" - DES Encrypt RSA Keys

Q

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

✍: FYIcenter.com

A

If you want to secure your new RSA 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 -algorithm rsa -out my_rsa_des.key -des
..................................................++++++
..++++++
Enter PEM pass phrase: fyicenter
Verifying - Enter PEM pass phrase: fyicenter

Options used in this command are:

  • "-algorithm rsa" - Use RSA algorithm to generate private key and public key.
  • "-out my_rsa_des.key" - Save output (the new RSA 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 RSA Keys

⇒⇒OpenSSL Tutorials

2017-12-31, 559👍, 0💬