I have a variable of type PCCERT_CONTEXT which contains a certificate (this is actually the certificat开发者_开发百科e 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
Maybe CertGetIssuerCertificateFromStore()?
You probably want CertGetCertificateChain http://msdn.microsoft.com/en-us/library/aa376078(VS.85).aspx
The CERT_CONTEXT contains the CERT_INFO structure. The CERT_INFO structure contains a pointer to the Issuer as a CERT_NAME_BLOB.
精彩评论