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

X509V2AttributeCertificateGenerator

public IEnumerable<string> SignatureAlgNames { get; }

Allows enumeration of the signature names supported by the generator.

public void AddAttribute(X509Attribute attribute)

Add an attribute.

public void AddExtension(string oid, bool critical, Asn1Encodable extensionValue)

Add a given extension field for the standard extensions tag.

public void AddExtension(string oid, bool critical, byte[] extensionValue)

Add a given extension field for the standard extensions tag. The value parameter becomes the contents of the octet string associated with the extension.

Generate a new X509V2AttributeCertificate using the provided ISignatureFactory.

public void Reset()

Reset the generator

Set the Holder of this Attribute Certificate.

Set the issuer.

public void SetIssuerUniqueId(bool[] iui)

public void SetNotAfter(DateTime date)

public void SetNotBefore(DateTime date)

public void SetSerialNumber(BigInteger serialNumber)

Set the serial number for the certificate.