Nitrokey / libnitrokey

Communicate with Nitrokey devices in a clean and easy manner
https://nitrokey.com/
GNU Lesser General Public License v3.0
65 stars 34 forks source link

Cannot detect Nitrokey FIDO2 with provided test script #192

Closed herrfeder closed 4 years ago

herrfeder commented 4 years ago

I'm not able to trigger any interaction with the Nitrokey FIDO2 Stick using libnitrokey and the python3 test script from the README.md :

$:~/temp/libnitrokey$ python3 python3_test.py -v
Imported 88 declarations
Trying ./build/libnitrokey.so
Found: /home/sysgen/temp/libnitrokey/build/libnitrokey.so
Could not connect to Nitrokey device!

Although using Chromium utilities and passwordless.dev the interaction works fine:

And therefore I'm assuming udev rules and other USB issues cannot be blamed.

I'm heading to use multiple FIDO2 for enrollment with privacyIDEA and therefore I need an working interaction with libnitrokey.so.

Thank you.

szszszsz commented 4 years ago

Hi!

libnitrokey does not support Nitrokey FIDO2 at the moment. You can interact with it using pynitrokey:

Edit: privacyIDEA seems to support U2F, which is available as well with Nitrokey FIDO2 (besides FIDO2).

herrfeder commented 4 years ago

Wow that was fast. Thank you. I will give pynitrokey a try and will check on Browser-based U2F. I was assuming the Support for FIDO2 as it isn't stated otherwise, the included udev rules and in the repo the line

device_connected = libnitrokey.NK_login_auto()  # connect to any Nitrokey Stick

told me that the FIDO2 is meant, too. Thank you again.