Skip to content

crypto/x509: ParseRevocationList accepts the IDP extension with DER encoding as an empty sequence #73284

Description

@onepeople158

Go version

go version go1.24.2 linux/amd64

Output of go env in your module/workspace:

IDP Extension Flags:
 Only Contains User Certificates: false
 Only Contains CA Certificates: false
 Indirect CRL: false

What did you do?

Hello Developer,

RFC5280 specifies that if onlyContainsUserCerts, onlyContainsCACerts, indirectCRL, and OnlyContainsAttributeCerts are all FALSE, there must be either a distributionPoint field or an onlySomeReasons field present.

However, when I am using Go to parse a CRL file, this CRL file has onlyContainsUserCerts, onlyContainsCACerts, indirectCRL, and OnlyContainsAttributeCerts all set to FALSE, and it does not have a distributionPoint field or an onlySomeReasons field. Go does not throw an error. Is this a bug, or is it a feature of Go?

What did you see happen?

Go parses the IDP extension information with a DER encoding of an empty sequence.

What did you expect to see?

crl_IDP_None.zip

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