Remove Key Password with OpenSSL

This is something I've wanted to do for a while now.

There wasn't a question already for it so I'm putting one in.

How do you remove a password from a .key file using OpenSSL.

1 Answer

Just use

openssl rsa -in original.key -out new.key

You will be prompted for your original password, so enter that first then the new key will be written afterwards.

Note you could have the -in and -out parameters be the same but if you get it wrong you could mess up your key.

Also note that if you actually want to change your password you don't need to remove the original first just use:

openssl rsa -aes256 -in original.key -out new.key

That will prompt you for the original key.

Then it will prompt for the new key (twice)

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like