Nitrokey / pynitrokey

Python client for Nitrokey devices
Apache License 2.0
93 stars 28 forks source link

Missing cryptography extension for fido2 provisioning #433

Open szszszsz opened 10 months ago

szszszsz commented 10 months ago

Missing cryptography extension for fido2 provisioning

$ pipx run pynitrokey  nk3 provision fido2 --cert data/fido.cert --key data/fido.key
NOTE: running app 'nitropy' from 'pynitrokey'
Command line tool to interact with Nitrokey devices 0.4.39
Critical error:
An unhandled exception occurred
        Exception encountered: ExtensionNotFound("No <class 'cryptography.x509.extensions.BasicConstraints'> extension was found")
robin-nitrokey commented 9 months ago

Can you share the traceback and the cryptography version? I don’t see any place in our code that would cause this exception directly (and I cannot reproduce it with cryptography 39.0.2).