-
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: parse additional fields in CertificateRequest #37172
Comments
Sounds good, we should even be able to share code with the Certificate parser. |
Adding to proposal minutes, seems headed for likely accept. |
Based on the discussion above this seems like a likely accept. |
No change in consensus, so accepted. |
Did not happen for Go 1.15. |
Change https://golang.org/cl/233163 mentions this issue: |
Change https://golang.org/cl/281235 mentions this issue: |
In general, we don't want to encourage reading them from CSRs, and applications that really want to can parse the Extensions field. Note that this also fixes a bug where the error of parseKeyUsageExtension was not handled in parseCertificateRequest. Fixes #43477 Updates #37172 Change-Id: Ia5707b0e23cecc0aed57e419a1ca25e26eea6bbe Reviewed-on: https://go-review.googlesource.com/c/go/+/281235 Trust: Filippo Valsorda <[email protected]> Run-TryBot: Filippo Valsorda <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Roland Shoemaker <[email protected]>
Change https://golang.org/cl/287392 mentions this issue: |
Removes the KeyUsage field that was missed in the rollback in CL 281235. Also updates CreateCertificateRequest to reflect that these fields were removed. For #43407. Updates #43477. Updates #37172. Change-Id: I6244aed4a3ef3c2460c38af5511e5c2e82546179 Reviewed-on: https://go-review.googlesource.com/c/go/+/287392 Trust: Alexander Rakoczy <[email protected]> Trust: Roland Shoemaker <[email protected]> Trust: Dmitri Shuralyov <[email protected]> Run-TryBot: Alexander Rakoczy <[email protected]> Reviewed-by: Alexander Rakoczy <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Filippo Valsorda <[email protected]> TryBot-Result: Go Bot <[email protected]>
Change https://golang.org/cl/287432 mentions this issue: |
What version of Go are you using (
go version
)?ParseCertificate
parses many common extensions and puts them in theCertificate
struct. I'd like forParseCertificateRequest
to do the same. Specifically, I currently manually parse the following fields fromCertificateRequest.Extensions
, and would like for them to be added toCertificateRequest
, with the corresponding changes toParseCertificateRequest
andCreateCertificateRequest
, exactly as they're implemented forCertificate
:The text was updated successfully, but these errors were encountered: