如何验证可移植代码中Microsoft的可移植可执行格式的数字签名? [英] How can I validate digital signatures for Microsoft's Portable Executable format in portable code?

查看:105
本文介绍了如何验证可移植代码中Microsoft的可移植可执行格式的数字签名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找示例代码(或库),以帮助我验证使用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的 WinVerifyTrust 实施以完整的编程方式。

You could check at WINE's WinVerifyTrust implementation for a full programmatic way.

实际上,这是一个很好的链接如何在Linux下验证可执行数字签名?抱怨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的可移植可执行格式的数字签名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆