Example #1
0
        public static bool FinishStrongNaming(this X509Certificate2 cert, string fileToDelaySign)
        {
            var sn = new StrongNameCertificate(cert.PrivateKey as RSA);

            return(sn.Sign(fileToDelaySign));
        }
 public static byte[] GetPublicKeyToken(this X509Certificate2 cert)
 {
     var sn = new StrongNameCertificate(cert.PublicKey.Key as RSA);
     return sn.PublicKeyToken;
 }
Example #3
0
        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);
 }