PeculiarVentures/x509

How to define new OID

jonsmirl opened this issue · 1 comments

How do I define this OID:
MatterRCACId = 1.3.6.1.4.1.37244.1.4

So that I can use it in the name field like this:
name: "MatterRCACId = CACACACA00000001",

I see asn1X509.RelativeDistinguishedName() in the test case, but how do I get it into the name field?

image

Finally figured it out....

      name: new x509.Name(new asn1X509.Name([
        new asn1X509.RelativeDistinguishedName([new asn1X509.AttributeTypeAndValue({ type: "1.3.6.1.4.1.37244.1.4", value: new asn1X509.AttributeValue({ printableString: "CACACACA00000001" }) })]),
      ])),