-
Bug
-
Resolution: Done
-
Minor
-
None
-
None
-
None
-
EnVision Sprint 63
-
3
-
None
We are testing using unsecure keys (not a big issue in tests), but the rsa library is now complaining about it
```
request = <SubRequest 'pubkey_data' for <Function test_create_pubkeys[512]>> application = <iqe.base.application.Application object at 0x7f3e63ee67d0> @pytest.fixture(scope="function") def pubkey_data(request, application): > yield from pubkey_create(request, application) /iqe_venv/lib/python3.11/site-packages/iqe_provisioning/fixtures/helpers.py:84: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /iqe_venv/lib/python3.11/site-packages/iqe_provisioning/fixtures/helpers.py:30: in pubkey_create key = rsa.generate_private_key( /iqe_venv/lib64/python3.11/site-packages/cryptography/hazmat/primitives/asymmetric/rsa.py:142: in generate_private_key _verify_rsa_parameters(public_exponent, key_size) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ public_exponent = 65537, key_size = 512 def _verify_rsa_parameters(public_exponent: int, key_size: int) -> None: if public_exponent not in (3, 65537): raise ValueError( "public_exponent must be either 3 (for legacy compatibility) or " "65537. Almost everyone should choose 65537 here!" ) if key_size < 1024: > raise ValueError("key_size must be at least 1024-bits.") E ValueError: key_size must be at least 1024-bits.
/iqe_venv/lib64/python3.11/site-packages/cryptography/hazmat/primitives/asymmetric/rsa.py:154: ValueError
```