-
Notifications
You must be signed in to change notification settings - Fork 18k
crypto/x509: invalid certificate policies #65990
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
Labels
Comments
It looks like a badly encoded certificate, this error is returned from this branch Lines 446 to 448 in 33013e8
|
Yep, it is badly encoded it hits this case: The last ObjectIdentifier has the length encoded using two bytes, but it should be encoded with one byte. 30810e060c2b0601040181e82d01010b01 |
This was referenced Nov 7, 2024
x/crypto/cryptobyte: "x509: invalid key usage" error caused by strict asn1 bit string parsing
#70242
Open
This was referenced Feb 17, 2025
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Go version
go1.22.0 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Test program:
Sample certificate (uncompress with
gunzip
):cert.crt.gz
Run:
What did you see happen?
Decoding with openssl works:
What did you expect to see?
The text was updated successfully, but these errors were encountered: