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

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -