Pregunta

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

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top