• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 297
  • Last Modified:

openssl - How to Strip a key file of its passcode

Given the creation of a key and the passcode how would I strip the key of that passcode given
the following :

openssl genrsa -des3 -out test2013.key 3072

and yes I do know the passcode

 I tried:
 openssl rsa -in test2013.key -out test2013wo.key

but it failed to work
I also tried:
 openssl rsa -des3 -in test2013.key -out test2013wo.key
Robert Silver
Robert Silver
1 Solution
Daniel HelgenbergerCommented:
The first command should have worked. Can you do this and paste the output:
openssl rsa -verbose -in test2013.key -out new.key

Open in new window

Robert SilverSr. Software EngineerAuthor Commented:
I need more sleep!  I logged my passphrase incorrectly subsituting a word for a number
shame on me!. Once I entered the correct pass phrase the operation worked.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now