[Last Call] Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2008-11-12
Medium Priority
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

kukno earned 2000 total points
ID: 22947843
use the option "-po" when you run the tool pvk2pfx.exe



Author Closing Comment

ID: 31516283
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

830 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