Code Signing: Creating a PFX file with a SPC and PVK files

Posted Thursday, November 9, 2006 2:43 PM by C-Dog's .NET Tip of the Day

If you ever have to do anything with a code signing key, it typically comes as a SPC file (public key I think) and PVK file (private key). These of course are useless to .NET. Luckily, there is a utility called pvkimprt. I have no idea where I found it (search Google). This utility makes it easy to create a PFX which you can use in your .NET applications. Simply use the syntax below.

pvkimprt -PFX mycert.spc mykey.pvk

That is all there is to it. You will need to know the password to your private key.

Read the complete post at