Skip to content

Commit

Permalink
update test to use key_size=1024 due to https://cryptography.io/en/42…
Browse files Browse the repository at this point in the history
  • Loading branch information
korbajan committed Aug 12, 2024
1 parent b4b67e6 commit d498636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfy_manager/tests/test_certificates.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def ca_cert(tmpdir):

key = rsa.generate_private_key(
public_exponent=65537,
key_size=512, # no need for a big key in tests
key_size=1024, # cryptography 42.0.3/changelog/3.3
)
key_password = 'key_password1'

Expand Down Expand Up @@ -289,7 +289,7 @@ def test_remove_key_encryption(tmpdir, ca_cert):

key = rsa.generate_private_key(
public_exponent=65537,
key_size=512,
key_size=1024,
)
with open(source_key, 'wb') as key_file:
key_pem = key.private_bytes(
Expand Down

0 comments on commit d498636

Please sign in to comment.