I'm trying to retrieve the details on an executable file's digital signature in a managed code. I basically need the name and the issuer off the cert. There's a C++ code sample from Microsoft that explains it for C++, but is there a similar way of doing it with C#?

有帮助吗?

解决方案

Create a crypto object from the signed file, using this function : http://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509certificate.createfromsignedfile%28v=vs.100%29.aspx

Then call the .Issuer property on that object.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top