• 1-888-289-2246
  • 24x7x365 Presence

How to decrypt a private key through the Linux command line


Save the encrypted key in the file enc.key and run the command below and paste the password. You will get the decrypted key in the file dec.key.

[root@Mailtest ~]# openssl rsa -in enc.key -out dec.key
Enter the passphrase for enc.key:
Writing the RSA key
[root@Mailtest ~]# ll
total 8
-rw-r–r– 1 root root 1679 Sep  5 07:10 dec.key
-rw-r–r– 1 root root 1766 Sep  5 06:49 enc.key

]]>


Leave a Reply

Your email address will not be published. Required fields are marked *