crypto/x509: ParseRevocationList accepts authorityCertSerialNumber set to 0 #73293
Labels
BugReport
Issues describing a possible bug in the Go implementation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
go version go1.24.2 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Hello Developer:
I have a CRL file where the authorityCertSerialNumber field in the AKI extension is set to 0. Go successfully parsed the authorityCertSerialNumber field without any errors. However, according to RFC5280, the authorityCertSerialNumber field stores the certificate serial number, which must be a positive integer.So, is this a bug?
What did you see happen?
Go parsed a CRL file with the authorityCertSerialNumber set to 0.
What did you expect to see?
main.zip
The text was updated successfully, but these errors were encountered: