Validate Authenticode signature on EXE - C++ without CAPICOM

大城市里の小女人 提交于 2019-11-27 07:08:11
Rasmus Faber

You should use CryptQueryObject.

This KB-article demonstrates the use: How To Get Information from Authenticode Signed Executables.

To the commenter that asked about how to do it without the Windows-APIs, I am not aware of any library that can do it, but the format is documented here: Windows Authenticode Portable Executable Signature Format

If the signature is valid, its certificate chain will contain your certificate. CertGetCertificateChain will get that chain.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!