如何检索文件的数字签名信息? [英] How to retrieve files digital signature information?
问题描述
我已经寻找一种方法来检索数字签名的PE文件信息。我需要出版商,发行商的链接,发布者名称和主题名称。我需要WINAPI / C / C ++ code(函数),我需要一个快速的方法,我不需要检查签名是否有效。
I have searched for a way to retrieve information from a digital signed PE file. I need the publisher, publisher link , issuer name and subject name. I need winapi / c / c++ code (functions) and i need a fast method , i don't need to check if the signature is valid or not.
推荐答案
微软提供了一个办法做到这一点在此支持链接:如何从Authenti code签名的可执行获取信息
Microsoft provides a way to do it in this support link: How To Get Information from Authenticode Signed Executables
您可以使用的WinVerifyTrust()API验证签署Authenti code
可执行文件。
You can use the WinVerifyTrust() API to verify an Authenticode signed executable.
虽然签名被验证,一个程序也必须做的
以下内容:
Although a signature is verified, a program may also have to do the following:
- 确定该签署的证书的细节
可执行文件。 - 确定的日期和时间,文件是时间
盖章。 - 获取与文件相关联的URL链接。
- 检索时间戳证书。
本文演示如何使用
CryptQueryObject()API检索的详细资料
Authenti code签名的可执行。
This article demonstrates how to use CryptQueryObject() API to retrieve detailed information from an Authenticode signed executable.
这篇关于如何检索文件的数字签名信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!