Beispiel #1
0
 public Certificate(CertificateRequest request, CertificateIssuer issuer)
 {
     _subject = request.Dn;
     _subjectPublicKey = request.PublicKey;
     _issuer = issuer.DistinguishedName;
     _cert = Create(request, issuer.Key.PrivateAsymmetricKey);
 }
Beispiel #2
0
        public Certificate(Action<CertificateRequest> r, Action<CertificateIssuer> i)
        {
            var request = new CertificateRequest();
            var issuer = new CertificateIssuer();
            r(request);
            i(issuer);

            _subject = request.Dn;
            _subjectPublicKey = request.PublicKey;
            _issuer = issuer.DistinguishedName;
            _cert = Create(request, issuer.Key.PrivateAsymmetricKey);
        }