changing the pass phrase on a key from openssl

A while ago I created a key with openssl genrsa -aes256 4096 > server.key. The process prompts for a pass phrase. I would now like to change that pass phrase, is that possible?

1

3 Answers

Use AES, e.g. AES256 instead of Triple DES:

openssl rsa -aes256 -in server.key -out newserver.key
2

If you have ssh-keygen installed, this is simpler :

ssh-keygen -p -f server.key

4
openssl rsa -des3 -in server.key -out newserver.key
6

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