37 if (
string.IsNullOrEmpty(hashAlgorithm.
Name))
58 if (
string.IsNullOrEmpty(hashAlgorithm.
Name))
79 if (
string.IsNullOrEmpty(hashAlgorithm.
Name))
105 if (
string.IsNullOrEmpty(hashAlgorithm.
Name))
131 if (
string.IsNullOrEmpty(hashAlgorithm.
Name))
227 long num = ticks % 10000000;
312 tbsCertificateAsn.Version = 2;
315 tbsCertificateAsn.Issuer =
issuerName.RawData;
321 Parameters = PublicKey.EncodedParameters.RawData
323 SubjectPublicKey = PublicKey.EncodedKeyValue.RawData
345 tbsCertificate.Extensions =
list.ToArray();
377 int num = serialNumber.Length - i;
static void ValidateDer(ReadOnlyMemory< byte > encodedValue)
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
void Add(TKey key, TValue value)
static string Cryptography_CertReq_BasicConstraintsRequired
static string Cryptography_CertReq_NotBeforeNotNested
static string Format(string resourceFormat, object p1)
static string Cryptography_CertReq_NoKeyProvided
static string Cryptography_CertReq_AlgorithmMustMatch
static string Cryptography_CertReq_IssuerBasicConstraintsInvalid
static string Cryptography_CertReq_DuplicateExtension
static string Cryptography_CertReq_IssuerKeyUsageInvalid
static string Cryptography_UnknownKeyAlgorithm
static string Cryptography_CertReq_RSAPaddingRequired
static string Cryptography_CertReq_DatesReversed
static string Cryptography_CertReq_NotAfterNotNested
static string Cryptography_CertReq_IssuerRequiresPrivateKey
static string Arg_EmptyOrNullArray
static string Cryptography_HashAlgorithmNameNullOrEmpty
static void Return(byte[] array, int clearSize=-1)
static byte[] Rent(int minimumLength)
static void Fill(Span< byte > data)
CertificateRequest(string subjectName, RSA key, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
X500DistinguishedName SubjectName
byte[] CreateSigningRequest()
CertificateRequest(X500DistinguishedName subjectName, ECDsa key, HashAlgorithmName hashAlgorithm)
CertificateRequest(X500DistinguishedName subjectName, RSA key, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
readonly AsymmetricAlgorithm _key
readonly X509SignatureGenerator _generator
readonly RSASignaturePadding _rsaPadding
X509Certificate2 Create(X500DistinguishedName issuerName, X509SignatureGenerator generator, DateTimeOffset notBefore, DateTimeOffset notAfter, ReadOnlySpan< byte > serialNumber)
CertificateRequest(X500DistinguishedName subjectName, PublicKey publicKey, HashAlgorithmName hashAlgorithm)
CertificateRequest(string subjectName, ECDsa key, HashAlgorithmName hashAlgorithm)
Collection< X509Extension > CertificateExtensions
byte[] CreateSigningRequest(X509SignatureGenerator signatureGenerator)
X509Certificate2 Create(X509Certificate2 issuerCertificate, DateTimeOffset notBefore, DateTimeOffset notAfter, ReadOnlySpan< byte > serialNumber)
ArraySegment< byte > NormalizeSerialNumber(ReadOnlySpan< byte > serialNumber)
X509Certificate2 CreateSelfSigned(DateTimeOffset notBefore, DateTimeOffset notAfter)
X509Certificate2 Create(X500DistinguishedName issuerName, X509SignatureGenerator generator, DateTimeOffset notBefore, DateTimeOffset notAfter, byte[] serialNumber)
X509Certificate2 Create(X509Certificate2 issuerCertificate, DateTimeOffset notBefore, DateTimeOffset notAfter, byte[] serialNumber)
static X509SignatureGenerator CreateForECDsa(ECDsa key)
static X509SignatureGenerator CreateForRSA(RSA key, RSASignaturePadding signaturePadding)
static void Decode(ref AsnValueReader reader, ReadOnlyMemory< byte > rebind, out AlgorithmIdentifierAsn decoded)