How to retrieve certificate information of a .Net dll in c# -
i want retrieve certificate information e.g, "issued to", "issued by" values of given .net dll programmatically.
thanks in advance!!
you should able like:
assembly asm = assembly.loadfrom("your_assembly.dll"); string exe = asm.location; system.security.cryptography.x509certificates.x509certificate executingcert = system.security.cryptography.x509certificates.x509certificate.createfromsignedfile(exe); console.writeline (executingcert.issuer);
Comments
Post a Comment