1

プログラムで特定の.netdllの「Issuedto」、「Issuedby」などの証明書情報を取得したい。

前もって感謝します!!

4

1 に答える 1

3

あなたは次のようなものでそれを行うことができるはずです:

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);
于 2012-06-28T18:17:48.550 に答える