To change a passphrase: openssl rsa -des3 -in $OLD_KEY -out $NEW_KEY To remove a passphrase: openssl rsa -in $OLD_KEY -out $NEW_KEY To check that a passphrase is correct: openssl rsa -check -in $NEW_KEY