Skip to content

Commit d498636

Browse files
committed
update test to use key_size=1024 due to https://cryptography.io/en/42.0.3/changelog/\#v3-3
1 parent b4b67e6 commit d498636

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cfy_manager/tests/test_certificates.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def ca_cert(tmpdir):
7777

7878
key = rsa.generate_private_key(
7979
public_exponent=65537,
80-
key_size=512, # no need for a big key in tests
80+
key_size=1024, # cryptography 42.0.3/changelog/3.3
8181
)
8282
key_password = 'key_password1'
8383

@@ -289,7 +289,7 @@ def test_remove_key_encryption(tmpdir, ca_cert):
289289

290290
key = rsa.generate_private_key(
291291
public_exponent=65537,
292-
key_size=512,
292+
key_size=1024,
293293
)
294294
with open(source_key, 'wb') as key_file:
295295
key_pem = key.private_bytes(

0 commit comments

Comments
 (0)