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
RFC 5280 §4.2.1.10 when spec'ing Name Constraints for the 5280 profile says (emphasis mine):
This is tested by the
x509-limborfc5280::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