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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

use the option "-po" when you run the tool pvk2pfx.exe


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.