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