Relative OID tag support is currently missing from the encoding/asn1 and x/crypto/cryptobyte packages.
The motivation is that RELATIVE-OID is used in both https://datatracker.ietf.org/doc/html/draft-ietf-tls-trust-anchor-ids-01 and https://datatracker.ietf.org/doc/draft-davidben-tls-merkle-tree-certs/.
In particular, attempting to parse a draft07 Merkle Tree Certificate with x509.ParseCertificate gives the following error: x509: invalid RDNSequence: invalid attribute value: unsupported string type: 13.
Relative OID tag support is currently missing from the encoding/asn1 and x/crypto/cryptobyte packages.
The motivation is that RELATIVE-OID is used in both https://datatracker.ietf.org/doc/html/draft-ietf-tls-trust-anchor-ids-01 and https://datatracker.ietf.org/doc/draft-davidben-tls-merkle-tree-certs/.
In particular, attempting to parse a draft07 Merkle Tree Certificate with
x509.ParseCertificategives the following error:x509: invalid RDNSequence: invalid attribute value: unsupported string type: 13.Let's go with (6). Concretely, I think it looks like updating the docs of pkix.AttributeTypeAndValue to say
The list matches what encoding/as…