示例#1
0
        public X509CertBuilder(string[] validWithDomainNames, string issuer, CertStrength certStrength)
        {
            _random   = new SecureRandom(_randomGenerator);
            _issuer   = new X509Name(issuer);
            _strength = (int)certStrength;

            _generalNames = new GeneralName[validWithDomainNames.Length];
            for (int t = 0; t < validWithDomainNames.Length; t++)
            {
                _generalNames[t] = new GeneralName(new X509Name(validWithDomainNames[t]));
            }
        }
示例#2
0
 public X509CertBuilder(string issuer, CertStrength certStrength)
 {
     _random   = new SecureRandom(_randomGenerator);
     _issuer   = new X509Name(issuer);
     _strength = (int)certStrength;
 }