-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: ParsePKIXPublicKey parses invalid RSA public keys without errors #16166
Labels
Milestone
Comments
I am happy to fix it myself if I find some time this weekend. |
ianlancetaylor
changed the title
crypto/x509 ParsePKIXPublicKey parses invalid RSA public keys without errors
crypto/x509: ParsePKIXPublicKey parses invalid RSA public keys without errors
Jun 23, 2016
CC @agl |
joeshaw
added a commit
to fastly/go-utils
that referenced
this issue
Mar 6, 2017
This meant regenerating a lot of certs. For background, golang/go#16166.
FiloSottile
pushed a commit
to FiloSottile/go
that referenced
this issue
Oct 12, 2018
The RFC is clear that the Parameters in an AlgorithmIdentifer for an RSA public key must be NULL. BoringSSL enforces this so we have strong evidence that this is a widely compatible change. Embarrassingly enough, the major source of violations of this is us. Go used to get this correct in only one of two places. This was only fixed in 2013 (with 4874bc9). That's why lots of test certificates are updated in this change. Fixes golang#16166. Change-Id: Ib9a4551349354c66e730d44eb8cee4ec402ea8ab Reviewed-on: https://go-review.googlesource.com/27312 Reviewed-by: Brad Fitzpatrick <[email protected]>
FiloSottile
pushed a commit
to FiloSottile/go
that referenced
this issue
Oct 12, 2018
The RFC is clear that the Parameters in an AlgorithmIdentifer for an RSA public key must be NULL. BoringSSL enforces this so we have strong evidence that this is a widely compatible change. Embarrassingly enough, the major source of violations of this is us. Go used to get this correct in only one of two places. This was only fixed in 2013 (with 4874bc9). That's why lots of test certificates are updated in this change. Fixes golang#16166. Change-Id: Ib9a4551349354c66e730d44eb8cee4ec402ea8ab Reviewed-on: https://go-review.googlesource.com/27312 Reviewed-by: Brad Fitzpatrick <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Please answer these questions before submitting your issue. Thanks!
go version
)?go version go1.6.2 darwin/amd64
go env
)?If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
https://play.golang.org/p/qMQ1aqX5Ox
Last line should say:
Error parsing incorrect RSA public key
INCORRECT public key have been parsed
According to
RFC3279 https://tools.ietf.org/html/rfc3279#section-2.3.1 :
Could you please fix it ?
The text was updated successfully, but these errors were encountered: