Password protect a .pfx file that has been converted from .spc + .pvk with pvk2pfx.exe

We are signing our files using credentials from an spc-file and a private key stored in a pfx-file. We would like to start using SignTool instead of SignCode for this. Converting the signing info into a pfx file is a piece of cake using pkv2pfx.exe but the resulting file can be used by anyone to sign files (using signtool.exe). With Sign code, if someone not authorized got his hands on the spc and pfx, the program prompted for a password in order to sign a file.

My question is: how can I create a pfx file from my spc/pvk pair that requires a password in order to function?
Editing the pfx, removing any stored password that way, would also solve the problem, if possible (as long as the user gets prompted for password when using the file).
Who is Participating?
kuknoConnect With a Mentor Commented:
use the option "-po" when you run the tool pvk2pfx.exe

lyasalillegardAuthor Commented:
I was too eager to see the obvious. It would have taken me long to find out myself as I thought I've covered all the options in pvk2pfx. Thank you for a quick and accurate answer.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.