Read and validate certificate from executable

后端 未结 3 1052
鱼传尺愫
鱼传尺愫 2020-12-24 14:55

I want to validate certificates of signed executable images (by validation, I mean to tell if the signature comes from MS/Adobe/Oracle etc.). Does windows provides api for t

3条回答
  •  清歌不尽
    2020-12-24 15:22

    The WinVerifyTrust function performs a trust verification action on a specified object. The function passes the inquiry to a trust provider that supports the action identifier, if one exists.

    For certificate verification, use the CertGetCertificateChain and CertVerifyCertificateChainPolicy functions.

提交回复
热议问题