views:

30

answers:

3

Hi All,

I have a variable of type PCCERT_CONTEXT which contains a certificate (this is actually the certificate of the digital signer of a given executable file.) I need to get the certificate or at least the name of the issuing CA. I've tried using CertOpenStore and WTHelperCertFindIssuerCertificate, but have had no success. I would appreciate any help.

Regards,

Alireza

+1  A: 

Maybe CertGetIssuerCertificateFromStore()?

Seva Alekseyev
A: 

You probably want CertGetCertificateChain http://msdn.microsoft.com/en-us/library/aa376078(VS.85).aspx

EricLaw -MSFT-
A: 

The CERT_CONTEXT contains the CERT_INFO structure. The CERT_INFO structure contains a pointer to the Issuer as a CERT_NAME_BLOB.

John