SUNET / python_x509_pkcs11

Python library for signing x509 using keys in an pkcs11 device
MIT License
4 stars 3 forks source link

Update defaults to public functions #11

Closed kushaldas closed 7 months ago

kushaldas commented 7 months ago

Fixes #8 KEYTYPES is now a Python Enum

All public facing functions now take Union[str, KEYTYPES] where KEYTYPES is a Python Enum and defaults to KEYTYPES.ED25519.

You can not send in None as key_type anymore. Sending a concrete Enum type is the recomended way.

It also fixes #10, during test runs we creates keys with "testpkcs" as prefix. Before and after the tests we delete all keys with that prefix via conftest.py, but not on Github action.

sonarcloud[bot] commented 7 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud