<PackageReference Include="BouncyCastle.Cryptography" Version="2.4.0" />

X509V1CertificateGenerator

Class to Generate X509V1 Certificates.
public IEnumerable<string> SignatureAlgNames { get; }

Allows enumeration of the signature names supported by the generator.

Default Constructor.

public X509Certificate Generate(ISignatureFactory signatureFactory)

Generate a new X509Certificate using the provided ISignatureFactory.

public void Reset()

Reset the generator.

public void SetIssuerDN(X509Name issuer)

Set the issuer distinguished name. The issuer is the entity whose private key is used to sign the certificate.

public void SetNotAfter(DateTime date)

Set the date after which this certificate will no longer be valid.

public void SetNotBefore(DateTime date)

Set the date that this certificate is to be valid from.

public void SetPublicKey(AsymmetricKeyParameter publicKey)

Set the public key that this certificate identifies.

public void SetSerialNumber(BigInteger serialNumber)

Set the certificate's serial number.

public void SetSubjectDN(X509Name subject)

Set the subject distinguished name. The subject describes the entity associated with the public key.