Pvk2Pfx will not use the PVK input password to display PFX protection

I use Pvk2Pfx to convert pvk and cer to a pfx file, the command I use is

pvk2pfx -pvk MyTest.pvk -spc MyTest.cer -pfx MyTest.pfx 

When I created the pvk file using makecert I was asked to enter the password for the private key.

When I ran the conversion command, I was also asked to enter the password for the pvk file. When I tried to import the pfx file into the certificate store in Windows, I do not need to specify a password. But according to a Microsoft document

/ po pfxpassword Specifies the password for the .pfx file. If no password for the .pfx file is specified, the password for the .pfx file will be the same as the password for the .pvk file

In this case, I did not use the / po switch in my command, I think the pfx file should have the same pvk file password, right? Why don't I need to specify a password to import into the certificate store?

+6
source share
1 answer

It looks like it will use the password for the .pvk file as the password for the .pfx file if you provide the password with the / pi switch.

 pvk2pfx /pvk pvkfilename.pvk /pi pvkpassword /spc spcfilename.cer /pfx pfxfilename.pfx 

If you do not specify a pvk password, you will be asked to enter it, but the resulting pfx file will NOT be password protected.

Additional information on pvk2pfx.

+3
source

All Articles