From: Peymaneh <peymaneh@posteo.net>
Date: Mon, 28 Nov 2022 00:40:58 +0100
Subject: Disable TestHandler_validateJWS/fail/rsa-key-too-small

Testing for RSA-key size was moved to go.step.sm/crypto,
which will throw an error by itself, but this version
of smallstep/certificates is still running the test as if
go.step.sm/crypto would return the function.

forwarded: not-needed
---
 acme/api/middleware_test.go | 56 ++++++++++++++++++++++-----------------------
 1 file changed, 28 insertions(+), 28 deletions(-)

--- a/acme/api/middleware_test.go
+++ b/acme/api/middleware_test.go
@@ -1135,34 +1135,34 @@
 				err:        acme.NewError(acme.ErrorMalformedType, "jws key type and algorithm do not match"),
 			}
 		},
-		"fail/rsa-key-too-small": func(t *testing.T) test {
-			jwk, err := jose.GenerateJWK("RSA", "", "", "sig", "", 1024)
-			assert.FatalError(t, err)
-			pub := jwk.Public()
-			jws := &jose.JSONWebSignature{
-				Signatures: []jose.Signature{
-					{
-						Protected: jose.Header{
-							Algorithm:  jose.RS256,
-							JSONWebKey: &pub,
-							ExtraHeaders: map[jose.HeaderKey]interface{}{
-								"url": u,
-							},
-						},
-					},
-				},
-			}
-			return test{
-				db: &acme.MockDB{
-					MockDeleteNonce: func(ctx context.Context, n acme.Nonce) error {
-						return nil
-					},
-				},
-				ctx:        context.WithValue(context.Background(), jwsContextKey, jws),
-				statusCode: 400,
-				err:        acme.NewError(acme.ErrorMalformedType, "rsa keys must be at least 2048 bits (256 bytes) in size"),
-			}
-		},
+		//		"fail/rsa-key-too-small": func(t *testing.T) test {
+		//			jwk, err := jose.GenerateJWK("RSA", "", "", "sig", "", 1024)
+		//			assert.FatalError(t, err)
+		//			pub := jwk.Public()
+		//			jws := &jose.JSONWebSignature{
+		//				Signatures: []jose.Signature{
+		//					{
+		//						Protected: jose.Header{
+		//							Algorithm:  jose.RS256,
+		//							JSONWebKey: &pub,
+		//							ExtraHeaders: map[jose.HeaderKey]interface{}{
+		//								"url": u,
+		//							},
+		//						},
+		//					},
+		//				},
+		//			}
+		//			return test{
+		//				db: &acme.MockDB{
+		//					MockDeleteNonce: func(ctx context.Context, n acme.Nonce) error {
+		//						return nil
+		//					},
+		//				},
+		//				ctx:        context.WithValue(context.Background(), jwsContextKey, jws),
+		//				statusCode: 400,
+		//				err:        acme.NewError(acme.ErrorMalformedType, "rsa keys must be at least 2048 bits (256 bytes) in size"),
+		//			}
+		//		},
 		"fail/UseNonce-error": func(t *testing.T) test {
 			jws := &jose.JSONWebSignature{
 				Signatures: []jose.Signature{
