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
]]>