开发者

Get the issuing CA for a given certificate

开发者 https://www.devze.com 2022-12-15 06:08 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消