Exemple #1
0
        public X509Certificate2 CreateSignedCrt(CertificateRequest csr)
        {
            X509Certificate2 intermedCert = csr.CreateX509Cert(
                this.intermedCACertWithKey,
                476);

            return(intermedCert);
        }
Exemple #2
0
        public X509Certificate2 CreateSignedCrt(CertificateRequest csr)
        {
            if (csr == null)
            {
                throw new ArgumentNullException(nameof(csr));
            }

            X509Certificate2 intermedCert = csr
                                            .CreateX509Cert(
                this.rootCASelfSignedCertWithKey,
                1504);

            return(intermedCert);
        }