How to read digital signature information from a signed .NET assembly?

I am writing an assembly information application that will be used during the software assembly process and I am trying to read digital signature information from a signed .NET assembly.

I want to do in my C # code what Windows Explorer can do by right-clicking the signed assembly and selecting the Digital Signatures tab, and then clicking the Details button. eg

Windows 7 Explorer can do by right-clicking file properties

Digital signature details

Does anyone have an idea how to do this programmatically in C #? I am currently using the Mono Cecil library to get the rest of the information from the assembly. Your help would be most appreciated.

+8
c # signed digital-signature x509 certificate authenticode
source share
1 answer

The Mono project provides source code for signcode and chktrust , which you can reuse inside your application (open source, MIT X11 license).

Both use the Mono.Security.dll assembly (which runs on Windows, not just Linux and OSX) and include fully full Authenticode support .

+5
source share

All Articles