crypto/x509: parser should error on Subject Information Access and Policy Constraints being makred as critical #70278
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.23.2 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Use x509.ParseCertificate(derBytes) to parse the der certificate
What did you see happen?
A critical examine of the aia extension:authority info access incorrectly marked critical
Authority Information Access is described in RFC5280: Conforming CAs MUST mark this extension as non-critical.
Other extensions with the same description in RFC5280 are not checked, such as:
Subject Information Access: Conforming CAs MUST mark this extension as non-critical.
Policy Constraints: Conforming CAs MUST mark this extension as non-critical.
What did you expect to see?
For certificates marked as critical, such as Subject Information Access and Policy Constraints, parsing errors will also occur.
The text was updated successfully, but these errors were encountered: