Skip to content

crypto/x509: don't apply name constraints to non-terminal self-issued certs #79746

Description

@cpu

RFC 5280 §4.2.1.10 when spec'ing Name Constraints for the 5280 profile says (emphasis mine):

Name constraints are not applied to self-issued certificates (unless
the certificate is the final certificate in the path).

This is tested by the x509-limbo rfc5280::nc::permitted-self-issued testcase.

Go crypto/x509 should not apply name constraints to self-issued certs in the path unless they're the terminal certificate.

Relates to #65085 & https://go-review.googlesource.com/c/go/+/783980

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions