Fedora Account System
Red Hat Associate
Red Hat Customer
pynitrokey uses the hidapi library to communicate with the NK3xN bootloader. The library supports two modes, hidraw and libusb. pynitrokey pins hidapi to a version using hidraw. Fedora ships a version using libusb and ignores the pin. The old Nitrokey udev rules shipped with libnitrokey only supported hidraw. The rules have been moved to a [separate repository][1] in 2024 and received support for the libusb mode in 2025 with [v1.1.0][2]. Fedora still ships the old udev rules from libnitrokey. [1]: https://github.com/Nitrokey/nitrokey-udev-rules [2]: https://github.com/Nitrokey/nitrokey-udev-rules/releases/tag/v1.1.0 The combination of the two means that users installing pynitrokey via Fedora are not able to communicate with the NK3xN bootloader. I would recommend to replace the udev rules from libnitrokey with the new udev rules from nitrokey-udev-rules in a separate package. See also [this upstream issue][3]. [3]: https://github.com/Nitrokey/pynitrokey/issues/806 Reproducible: Always Steps to Reproduce: 1. Connect NK3xN device. 2. Reboot to bootloader with `nitropy nk3 reboot --bootloader`. 3. Try to connect to the device, e. g. with `nitropy nk3 list` or `nitropy nk3 update`. Actual Results: ``` nitrokey.trussed._bootloader.lpc55_upload.exceptions.SPSDKConnectionError: SPSDK: Unable to open device ' (0x20A0, 0x42DD)path=b'3-6:1.0'' ``` Expected Results: Device is used correctly.
Agreed with the plan to move the udev rules into their own RPM, I'll whip up a ticket for that now