问题描述
我正在寻找示例代码(或库),以帮助我验证使用C ++的非Windows平台上Windows PE文件(.exe,.dll,.cab,.etc)的数字签名。我正在寻找与平台无关的方法。
I am looking for sample code (or libraries) that can help me validate digital signatures for Windows PE files (.exe, .dll, .cab, .etc) on non-Windows platforms using C++. I am looking for a platform-independent approach.
谢谢!
推荐答案
您可以查看WINE的 以完整的编程方式。
You could check at WINE's WinVerifyTrust implementation for a full programmatic way.
实际上,这是一个很好的链接抱怨WINE的实现(当时(早在2008年),因此,只要您的平台中提供类似于OpenSSL的功能,就可以用一种非常便携式的方式说明该过程。
And, actually, here is a good link How to verify executable digital signatures under Linux? that complains about WINE implementation (that was back in 2008), and thus, explains the process in a quite "portable" way, provided you have something similar to OpenSSL available in your platform.
这篇关于如何验证可移植代码中Microsoft的可移植可执行格式的数字签名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!