CertGetContextPropery()

C

Chris Vavruska

When using the API function CertGetContextPropery() to get the property
CERT_ISSUER_PUBLIC_KEY_MD5_HASH_PROP_ID from a certificate in Microsoft
Certificate store, the function fails and returns the error code
CRYPT_E_NOT_FOUND for a newly imported certificate. Whereas if the
certificate is viewed using IE "view certificate" option, the above function
retrieves the property value successfully.
And also repeatedly calling the CertGetContextProperty() returns the same
error code CRYPT_E_NOT_FOUND, until the certificate is opened by IE.
So the question is: Why does the API function fails the first time? Is there
any kind of initialization done by IE ?

Regards,

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,267
Latest member
WaylonCogb

Latest Threads

Top