Skip to content

crypto/x509: don't count self-signed certs in pathlen budget #79745

Description

@cpu

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions