Skip to content

Commit 38b9ff6

Browse files
rolandshoemakergopherbot
authored andcommitted
crypto/x509: reduce boring test key size
Generating 8192 bit keys times out on builders relatively frequently. We just need something that isn't a boringAllowCert allowed key size so we can test that a non-boringAllowCert signed intermediate works, so just use 512 instead since it'll be significantly faster. Fixes #56798 Change-Id: I416e0d8c3aa11ff44e9870755efa95c74d1013f1 Reviewed-on: https://go-review.googlesource.com/c/go/+/451656 Auto-Submit: Roland Shoemaker <[email protected]> Reviewed-by: Filippo Valsorda <[email protected]> Run-TryBot: Roland Shoemaker <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Bryan Mills <[email protected]>
1 parent 5c834a2 commit 38b9ff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/x509/boring_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type boringCertificate struct {
5454

5555
func TestBoringAllowCert(t *testing.T) {
5656
R1 := testBoringCert(t, "R1", boringRSAKey(t, 2048), nil, boringCertCA|boringCertFIPSOK)
57-
R2 := testBoringCert(t, "R2", boringRSAKey(t, 8192), nil, boringCertCA)
57+
R2 := testBoringCert(t, "R2", boringRSAKey(t, 512), nil, boringCertCA)
5858
R3 := testBoringCert(t, "R3", boringRSAKey(t, 4096), nil, boringCertCA|boringCertFIPSOK)
5959

6060
M1_R1 := testBoringCert(t, "M1_R1", boringECDSAKey(t, elliptic.P256()), R1, boringCertCA|boringCertFIPSOK)

0 commit comments

Comments
 (0)