Skip to content

crypto/x509: parseCertificate fails if Cert Policy extension is critical #9964

Description

@mvanotti

Minimal Test Case: http://play.golang.org/p/ihE8Lkqw66
At the end there's a certificate with a Cert Policy extension marked as critical.

parseCertificate fails because it is missing a continue at the end of case 32.
https://github.com/golang/go/blob/fe40cdd75676398/src/crypto/x509/x509.go#L1051-L1061

Refer to RFC 5280 Section 4.2.1.4

Adding a simple continue at the end will fix the issue.

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions