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?


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

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

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

ssh-keygen -p -f server.key


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