Search This Blog

Friday, February 12

How to change password on 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



Source: http://www.1st-setup.nl/wordpress/howto-change-password-on-pfx-certificate-using-openssl/

No comments:

Post a Comment