RFC 5280 §4.2.1.9 when spec'ing Basic Constraints and the pathLenConstraint for the 5280 profile says (emphasis mine):
In this case, it gives the maximum number of non-self-issued intermediate
certificates that may follow this certificate in a valid certification path
This is tested by the x509-limbo pathlen::self-issued-certs-pathlen testcase.
Go crypto/x509 should not include self-issued intermediates in the path len budget when evaluating this constraint.
Relates to #65085 & https://go-review.googlesource.com/c/go/+/783980
RFC 5280 §4.2.1.9 when spec'ing Basic Constraints and the
pathLenConstraintfor the 5280 profile says (emphasis mine):This is tested by the
x509-limbopathlen::self-issued-certs-pathlen testcase.Go crypto/x509 should not include self-issued intermediates in the path len budget when evaluating this constraint.
Relates to #65085 & https://go-review.googlesource.com/c/go/+/783980