Skip to content

Add multicodec for DER-encoded X.509 certificate#385

Merged
rvagg merged 2 commits intomultiformats:masterfrom
joaopenteado:master
Aug 20, 2025
Merged

Add multicodec for DER-encoded X.509 certificate#385
rvagg merged 2 commits intomultiformats:masterfrom
joaopenteado:master

Conversation

@joaopenteado
Copy link
Contributor

This PR proposes a new multicodec entry for the canonical binary representation for X.509 certificates, as defined in RFC 5280, encoded in DER form.

Notes

  • This covers exactly one Certificate object; if there’s demand for transporting multiple certs, CRLs, OCSP responses, or PKCS#7 bundles, those should be proposed as separate, unambiguous entries.
  • Version is not restricted to v3 — v1 and v2 certificates are valid encodings and will parse under the same ASN.1 type.
  • Consumers can unambiguously decode and parse the payload knowing only the multicodec code.

…tensions

Co-authored-by: Rod Vagg <rod@vagg.org>
Copy link
Member

@rvagg rvagg left a comment

Choose a reason for hiding this comment

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

sgtm

@rvagg rvagg merged commit 09c1cbe into multiformats:master Aug 20, 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.

2 participants