From 0c9e1375398aa2454b0105c9cdc899a5f248b723 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 13 Dec 2018 11:00:25 +0100 Subject: [PATCH] auth: Use a realistic RSA key size for testing rsasha256 via the API We used to request the creation of a 256-bit RSA key, which OpenSSL refuses from 1.1.1 onward. 1.1.0 used to accept everything larger than 16 bits (!) but in 1.1.1 512 (RSA_MIN_MODULUS_BITS) is the minimum. --- regression-tests.api/test_cryptokeys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regression-tests.api/test_cryptokeys.py b/regression-tests.api/test_cryptokeys.py index cccb3c783..d25c9eb5f 100644 --- a/regression-tests.api/test_cryptokeys.py +++ b/regression-tests.api/test_cryptokeys.py @@ -111,7 +111,7 @@ class Cryptokeys(ApiTestCase): # Test POST to add a key with specific name and bits def test_post_specific_name_bits(self): - self.post_helper(algo="rsasha256", bits=256) + self.post_helper(algo="rsasha256", bits=2048) # Test POST to add a key with specific name def test_post_specific_name(self): -- 2.40.0