Getting error while using CryptAcquireCertificatePrivateKey API to extract private key from PFX file

2

We are developing 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.

Note: PFX file is provided by third party vendor(like symantec).

Thanks in advance.

certificate
cryptoapi
pfx
asked on Stack Overflow Jun 1, 2015 by Nishant Kumar

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0