76,456 views

Howto: Change password on pfx certificate using openssl

With following procedure you can change your password on an .pfx certificate using openssl.

Export you current certificate to a passwordless pem type:
[user@hostname]>openssl pkcs12 -in mycert.pfx -out tmpmycert.pem -nodes
Enter Import Password:
MAC verified OK

Convert the passwordless pem to a new pfx file with password:
[user@hostname]openssl pkcs12 -export -out mycert2.pfx -in tmpmycert.pem
Enter Export Password:
Verifying - Enter Export Password:

Remove the temporary file:
[user@hostname]rm tmpmycert.pem

Now you are done and can use the new mycert2.pfx file with your new password.

This entry was posted in Certificates, Howto, openssl and tagged , , , , . Bookmark the permalink.

One Response to Howto: Change password on pfx certificate using openssl

Leave a Reply

Your email address will not be published.