public static bool FinishStrongNaming(this X509Certificate2 cert, string fileToDelaySign) {
     var sn = new StrongNameCertificate(cert.PrivateKey as RSA);
     return sn.Sign(fileToDelaySign);
 }
Esempio n. 2
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;
 }
Esempio n. 4
0
        public static byte[] GetPublicKeyToken(this X509Certificate2 cert)
        {
            var sn = new StrongNameCertificate(cert.PublicKey.Key as RSA);

            return(sn.PublicKeyToken);
        }