-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crypto/x509: certificate with empty Authority Key Identifier extension considered invalid #70619
Comments
please show a reproducer. also 1.18 is not a supported version.
and it should be allowed from #15194 |
I implemented this problem again in go version go1.23.2 linux/amd64 |
cc @golang/security |
Go version
go version go1.18.1 linux/amd64
Output of
go env
in your module/workspace:What did you do?
I used crypto/x509 of golang to convert the der certificate to a pem certificate. For my test case, there was an Authority Key Identifier extension with an empty value.
What did you see happen?
Golang considered it an invalid Authority Key Identifier extension, but openssl and gnutls did not.
What did you expect to see?
According to rfc5280, the keyIdentifier, authorityCertIssuer, and authorityCertSerialNumber of the Authority Key Identifier extension are all OPTIONAL
The text was updated successfully, but these errors were encountered: