Question

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#?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top