Skip to content

Override issuer encoding used in early implementations - #143

Merged
davidben merged 1 commit into
ietf-plants-wg:mainfrom
cjpatton:cjpatton/142
Sep 15, 2025
Merged

Override issuer encoding used in early implementations#143
davidben merged 1 commit into
ietf-plants-wg:mainfrom
cjpatton:cjpatton/142

Conversation

@cjpatton

Copy link
Copy Markdown
Contributor

Closes #142.

RELATIVE-OID isn't yet widely implemented. For example, see golang/go#75260. To unblock
early deployments, we'll go with UTF8String instead.

@cjpatton
cjpatton requested a review from davidben as a code owner September 10, 2025 22:30
For example, the distinguished name for a log named `32473.1` would be represented in syntax of {{?RFC4514}} as:

~~~
1.3.6.1.4.1.44363.47.1=#0c0733323437332e31

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As in:

var tv pkix.AttributeTypeAndValue
tv.Type = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 44363, 47, 1}
tv.Value = asn1.RawValue{Tag: asn1.TagUTF8String, Bytes: []byte("32473.1")}

var name pkix.Name
name.Names = append(name.Names, tv)
fmt.Println(name.String())

Comment thread draft-davidben-tls-merkle-tree-certs.md Outdated
RELATIVE-OID isn't yet widely implemented. For example, see
<golang/go#75260>. To unblock early
deployments, we'll go with UTF8String instead.
@cjpatton

Copy link
Copy Markdown
Contributor Author

@davidben I took your suggestion and squashed. I don't have the merge button, but feel free at your convenience.

@davidben
davidben merged commit a3438ec into ietf-plants-wg:main Sep 15, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

X.509 name construction isn't compatible with Go

2 participants