How to Change the Password of a pfx File?

To change the password of a pfx file we can use openssl.

Open a command prompt.

Navigate to the openssl folder:

cd C:\OpenSSL-Win64\bin

Extract the private key with the following command:

openssl pkcs12 -in C:\Temp\SelfSigned1.pfx -out C:\Temp\SelfSigned2.pem -nodes

(You need to enter the old password, when requested!)

Then create a new pfx with the new password:

openssl pkcs12 -export -out C:\Temp\SelfSigned2.pfx -in C:\Temp\SelfSigned2.pem

Now, you’ll be asked for the new password.

The resulting pfx file can be used with the new password.

Hope it helps!

Originally published at http://www.weboideas.com on January 17, 2018.

--

--

I’m a software development enthusiast who likes trying different web technologies and adding value to his team.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mert Ilis

I’m a software development enthusiast who likes trying different web technologies and adding value to his team.