Skip to content

linter: pass through RawSubject#8869

Open
jsha wants to merge 1 commit into
mainfrom
pass-subject
Open

linter: pass through RawSubject#8869
jsha wants to merge 1 commit into
mainfrom
pass-subject

Conversation

@jsha

@jsha jsha commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

x509.CreateCertificate copies the issuer's Subject into the signed certificate's Issuer. If the RawSubject bytes are available, it copies those. Otherwise it copies only known fields and ExtraNames from the Subject.

Since the name types used in MTC aren't recognized, we have to make sure RawSubject is available. Otherwise end-entity certificates would get an empty Issuer.

References:
https://cs.opensource.google/go/go/+/refs/tags/go1.26.3:src/crypto/x509/x509.go;l=1732
https://cs.opensource.google/go/go/+/refs/tags/go1.26.3:src/crypto/x509/x509.go;l=1523-1529
https://pkg.go.dev/crypto/x509/pkix#Name.ToRDNSequence

@jsha jsha marked this pull request as ready for review July 12, 2026 14:34
@jsha jsha requested a review from a team as a code owner July 12, 2026 14:34
@jsha jsha requested a review from aarongable July 12, 2026 14:34
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.

1 participant