Check/change key passphrase with openssl

Quick post for my future reference, and for anyone Googling.

To check the passphrase for a key is correct:

openssl rsa -check -in keyfilename

To change the passphrase for a key:

openssl rsa -des3 -in keyfilename -out newkeyfilename

Simples.

One thought on “Check/change key passphrase with openssl”

  1. openssl rsa -des3 -in keyfilename -out newkeyfilename

    doesn’t work on OSX. Tunnelblick is logging -> Bad encrypten…

Comments are closed.