Reputation: 17293
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#?
Upvotes: 4
Views: 5820
Reputation: 3810
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.
Upvotes: 4