Re: How to decrypt encrypted PVK file ?

From: Michael Leung (mmhleung_at_hotmail.com)
Date: 09/24/04

  • Next message: Phil Ten: "Re: CryptAcquireContext fails with error 6 (The handle is invalid)"
    Date: Fri, 24 Sep 2004 15:42:33 +1000
    
    

    Is there a way to get around the PvkImprt step ?
    Is it possible to do what PvkImprt do in code, using CryptoAPI ?

    I would like to automate the signing process in code.

    Thanks to your replies,
    Michael.

    Daniel Sie [MSFT] wrote:

    > Use the PvkImprt.exe utility to import the cert and key into PFX. Now using
    > all public APIs, such as PFXImportCertStore,
    > CryptAcquireCertificatePrivateKey(), and CryptExportKey(), you should be
    > able to dump the key.
    >


  • Next message: Phil Ten: "Re: CryptAcquireContext fails with error 6 (The handle is invalid)"