From: Remi Gacogne Date: Thu, 13 Dec 2018 10:00:25 +0000 (+0100) Subject: auth: Use a realistic RSA key size for testing rsasha256 via the API X-Git-Tag: auth-4.1.6~2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c9e1375398aa2454b0105c9cdc899a5f248b723;p=pdns 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. --- 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):