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

Posted on 2008-11-12
Last Modified: 2013-11-27
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).
Question by:lyasalillegard
    LVL 10

    Accepted Solution

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


    Author Closing Comment

    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.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now