public Certificate(CertificateRequest request, CertificateIssuer issuer) { _subject = request.Dn; _subjectPublicKey = request.PublicKey; _issuer = issuer.DistinguishedName; _cert = Create(request, issuer.Key.PrivateAsymmetricKey); }
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); }