How to Change the Password of a pfx File?

Mert Ilis
1 min readJan 2, 2020

--

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.

--

--

Mert Ilis

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