Re: SPC and PVK creation

From: Michel Gallant (neutron_at_NOSPAMistar.ca)
Date: 01/03/04


Date: Sat, 3 Jan 2004 16:31:10 -0500

Signcode.exe can use public/private key information from either
 (1) local files (spc/pvk) or
 (2) cert public keys and associated private keys in CSP keycontainers
You can use signcode.exe knowing only the "CN" part of a certificate
(in the MY store) and it will automatically find the associated private keycontainer.
For details on this, see:
 http://msdn.microsoft.com/library/default.asp?url=/workshop/security/authcode/signing.asp
and also sample signing commands at:
 http://pages.istar.ca/~neutron/Thawte

The same keycontainer (instead of the .snk file) can be used directly to SN code
(if you know the keycontainer name) using:
  [assembly:AssemblyKeyNameAttribute("yourkeycontainername")]

I don't think there is any utility to directly convert a cert with associated
keycontainer into SPC and PVK files (PVK is proprietary privatekey format).

Cheers,
 - Mitch Gallant
   MVP Security

"Rashad Rivera" <riverarx@state.gov> wrote in message news:00fc01c3d235$6543aee0$a501280a@phx.gbl...
> how do I extract the private key from a .CER to a SPC and
> PVK pair for code signing. I have set up a private CA
> server and can issue PKIs with software signing
> capabilities, but I can not find out how to extact the
> keys into the format needed for CODESIGN.EXE or SN.EXE.
> I tried using the MAKECERT, but that only creates test
> keys and the CERT2SPC only gets me the SPC but no PVK.
> Is there a way to do all of this from a command promt?
>
> Thanks,
>
> Rashad Rivera



Relevant Pages

  • Re: AcquireCredentialshandle returns SEC_E_INTERNAL_ERROR
    ... keys info which is stored in a file to Certificate context ... I found that the file in which my private keys r stored must ... be in *.pvk format.I dont know how convert from .key to .pvk. ...
    (microsoft.public.platformsdk.security)
  • Re: convert file having private keys( private.key) to .pvk
    ... keys info which is stored in a file to Certificate context ... I found that the file in which my private keys r stored must ... be in *.pvk format.I dont know how convert from .key to .pvk. ...
    (microsoft.public.platformsdk.security)
  • Re: Firewall security: Re: Problems with simple Samba file share
    ... > against is people who already stole the private keys using them to do ... > once they had access to backups, but I grant you there are diffeernt ... Peter, do I really have to go back through nearly 200 posts and prove to ...
    (comp.os.linux.misc)
  • Re: Can I implement an autofill feature with a textbox?
    ... the arrow keys, though. ... Private mAutoFill As New ArrayList ... Private mblnLockout As Boolean ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Encrypting files in XP
    ... You need to get the other user's public key (_not_ private key!). ... All that user has to do is encrypt one file on his PC and he ... if you lose your private keys you lose access to your files for good! ... This password protect user profile in which private ...
    (microsoft.public.windowsxp.security_admin)