-
Notifications
You must be signed in to change notification settings - Fork 18k
crypto/x509: fix certificate request creation with RSA-PSS #55153
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
Conversation
Note: This is a copy of #46029 which seem to bother the bot. |
This PR (HEAD: 2914abc) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/431916 to see it. Tip: You can toggle comments from me using the |
Message from Alex Scheel: Patch Set 1: Code-Review+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Yoann CONGAL: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Yoann CONGAL: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
2914abc
to
f7a5e2a
Compare
This PR (HEAD: f7a5e2a) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/431916 to see it. Tip: You can toggle comments from me using the |
Message from Yoann CONGAL: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
f7a5e2a
to
37e1d50
Compare
This PR (HEAD: 37e1d50) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/431916. Important tips:
|
Message from Yoann CONGAL: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Ian Lance Taylor: Patch Set 3: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Go LUCI: Patch Set 3: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2023-09-04T17:13:47Z","revision":"0c09cac56657acd42e0b2cf56e65d4ac704ae4bf"} Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Ian Lance Taylor: Patch Set 3: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Go LUCI: Patch Set 3: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Go LUCI: Patch Set 3: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Yoann CONGAL: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
37e1d50
to
7386ca3
Compare
This PR (HEAD: 7386ca3) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/431916. Important tips:
|
Message from Yoann CONGAL: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
7386ca3
to
b6cd51f
Compare
This PR (HEAD: b6cd51f) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/431916. Important tips:
|
Message from Yoann CONGAL: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
b6cd51f
to
2b8681b
Compare
This PR (HEAD: 2b8681b) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/431916. Important tips:
|
No change, just rebased the branch and tested that the issue is still current (it is!) |
Message from Yoann CONGAL: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Jes Cok: Patch Set 6: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Gopher Robot: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Gopher Robot: Patch Set 6: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
In case of a RSA-PSS algorithm, the hashFunc of CreateCertificateRequest is embedded in a rsa.PSSOptions struct. Given to key.Sign(), this will generate a proper RSA-PSS signature. Pasted from the RSA-PSS handling code in CreateCertificate() Fixes golang#45990
2b8681b
to
63fb021
Compare
This PR (HEAD: 63fb021) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/431916. Important tips:
|
Message from Yoann CONGAL: Patch Set 7: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Filippo Valsorda: Patch Set 10: Auto-Submit+1 Code-Review+2 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Go LUCI: Patch Set 10: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-05-16T09:20:09Z","revision":"859217eb0adf06f22e29caa4648982b68b05e5d9"} Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Filippo Valsorda: Patch Set 10: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Go LUCI: Patch Set 10: This CL has failed the run. Reason: Tryjob golang/try/x_tools-gotip-linux-amd64 has failed with summary (view all results): FAILURE
Error:
Links:
Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Go LUCI: Patch Set 10: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Filippo Valsorda: Patch Set 10: TryBot-Bypass+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
Message from Dmitri Shuralyov: Patch Set 10: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/431916. |
In case of a RSA-PSS algorithm, the hashFunc of CreateCertificateRequest is embedded in a rsa.PSSOptions struct. Given to key.Sign(), this will generate a proper RSA-PSS signature. Pasted from the RSA-PSS handling code in CreateCertificate(). Fixes #45990 Fixes #65074 Change-Id: I8475afa79d8add107f092cc2871d38300e7b3903 GitHub-Last-Rev: 63fb021 GitHub-Pull-Request: #55153 Reviewed-on: https://go-review.googlesource.com/c/go/+/431916 Auto-Submit: Filippo Valsorda <[email protected]> Reviewed-by: Filippo Valsorda <[email protected]> TryBot-Bypass: Filippo Valsorda <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Alex Scheel <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
This PR is being closed because golang.org/cl/431916 has been merged. |
In case of a RSA-PSS algorithm, the hashFunc of CreateCertificateRequest
is embedded in a rsa.PSSOptions struct. Given to key.Sign(), this will
generate a proper RSA-PSS signature.
Pasted from the RSA-PSS handling code in CreateCertificate().
Fixes #45990
Fixes #65074