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

Org.BouncyCastle.X509.X509Attribute

public class X509Attribute : Asn1Encodable
Class for carrying the values in an X.509 Attribute.
public string Oid { get; }

public X509Attribute(string oid, Asn1Encodable value)

Create an X.509 Attribute with the type given by oid and the value represented by an ASN.1 Set containing value.

public X509Attribute(string oid, Asn1EncodableVector value)

Create an X.509 Attribute with the type given by oid and the value represented by an ASN.1 Set containing the objects in value.