编程验证C#中的.EXE的数字签名
在我的.dll的c#代码中,我想验证调用我.dll的.EXE的数字签名。我正在寻找一种从代码中进行signtool验证[...]
之类的方法。
我要检查的数字签名显示在Windows File Explorer中的“数字签名”选项卡上。例如,这是此选项卡的示例屏幕截图。
我如何从C#代码访问.EXE的数字签名?最好的方法是什么?有人有例子吗?
within the C# code of my .dll I want to verify the digital signature of the .exe that is calling my .dll. I am looking for a way to do something like SignTool Verify [...]
from code.
The digital signature I want to check is displayed on the digital signature tab in the windows file explorer. As an example, here is an example screenshot of this tab.
How do I access the digital signature of the .exe from C# code? What is the best way to do this? Does anyone have an example?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用system.security.cryptography.x509certificate进行。
I use System.Security.Cryptography.X509Certificates to do it.
我使用反思比较证书。
如下样品:
I use reflection to compare the cert.
Sample like below: