locked
Problem with extracting private key from PFX file RRS feed

  • Question

  • Hi,<o:p></o:p>

     We are develo[ping VC++ application using Crypto APIs for windows 7 OS.

    We are using CryptAcquireCertificatePrivateKey API to extract private key from PFX file  .
    On executind this API, we are getting below error:
    0X8009200B(private key error)
    PFX file used with this API has multi layer certificate(root and intermediate).
    When we use such PFX file, error comes.
    And if we use PFX having single layer certificate that time it works.
    So please suggest the reason for its failing.<o:p></o:p>

    Note: PFX file is provided by third party vendor(like symantec).<o:p></o:p>


    Thanks in advance.<o:p></o:p>

    Monday, June 1, 2015 9:41 AM

All replies

  • How do you get the certificate from the pfx?  are you looping through to find a cert with a private key?

    Friday, June 26, 2015 3:53 AM