-
Notifications
You must be signed in to change notification settings - Fork 18k
repeated extension #70039
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
Comments
Duplicate of #50988 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Go version
go version go1.18.1 linux/amd64
Output of
go env
in your module/workspace:What did you do?
I use x509.ParseCertificate(derBytes) to parse a der certificate which has two aki extensions
Test Cases.zip
What did you see happen?
The test case was parsed successfully
What did you expect to see?
This test case does not comply with the RFC5280 specification: 4.2 Introduction: "A certificate MUST NOT include more than one instance of a particular extension. For example, a certificate may contain only one authority key identifier extension (Section 4.2.1.1)." Is this a defect? As a comparison, the Bouncycastle function X509CertificateHolder(derBytes) in the Java language throws an error: repeated extension found: 2.5.29.35
The text was updated successfully, but these errors were encountered: