예제 #1
0
 public static byte[] GetPublicKeyToken(this X509Certificate2 cert)
 {
     var sn = new StrongNameCertificate(cert.PublicKey.Key as RSA);
     return sn.PublicKeyToken;
 }
예제 #2
0
 public static bool FinishStrongNaming(this X509Certificate2 cert, string fileToDelaySign)
 {
     var sn = new StrongNameCertificate(cert.PrivateKey as RSA);
     return sn.Sign(fileToDelaySign);
 }