]> granicus.if.org Git - pdns/commitdiff
auth: Use a realistic RSA key size for testing rsasha256 via the API
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 13 Dec 2018 10:00:25 +0000 (11:00 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 13 Dec 2018 10:00:25 +0000 (11:00 +0100)
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

index cccb3c783f92240ffddac8bcfd65e8be08fd9c83..d25c9eb5f01b8eabe18ccf1a0d0ae13b0b68ab0b 100644 (file)
@@ -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):