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