Open
Description
Go version
go version go1.24.1 linux/amd64
Output of go env
in your module/workspace:
2001-03-01 01:00:00 +0000 UTC
2100-01-01 00:00:00 +0000 UTC
1
What did you do?
The RFC standard for X.509 CRLs restricts the thisUpdate field to only two formats, namely UTCTime (YYMMDDHHMMSSZ) and GeneralizedTime (YYYYMMDDHHMMSSZ) in ASN.1 representation, which are 13 and 15 characters wide, respectively. However, go1.24.1 accepts CRLs with a thisUpdate field of length 11 ("0103010100Z").
What did you see happen?
However, go1.24.1 accepts CRLs with a thisUpdate field of length 11 ("0103010100Z").
What did you expect to see?
The RFC standard for X.509 CRLs limits the thisUpdate field to only two formats: UTCTime (YYMMDDHHMMSSZ) and GeneralizedTime (YYYYMMDDHHMMSSZ) in ASN.1 encoding, which are 13 and 15 characters wide, respectively. Therefore, it should reject a CRLs file with a thisUpdate
field length of 11 (e.g., "0103010100Z").
main.zip