pynitrokey
A command line interface for the Nitrokey FIDO2, Nitrokey Start and NetHSM.
Current state
Update to the latest firmware versions on the Nitrokey Start and Nitrokey FIDO2 devices was tested. Windows support for Nitrokey Start is not added yet.
Additional features:
- handle
statuscommand for displaying touch button status (2.0.0 firmware and later); - firmware signing adjusted for Nitrokey FIDO2 bootloader
- monitor command with timestamps
Installation
Linux, Unix
sudo apt install python3-pip
pip3 install --user pynitrokey
Windows
Generally Windows support and the installer are experimental - please use with caution.
Known issues:
- Support for Nitrokey Start under Windows 10 is not working without installing libusb libraries (to be described).
- The installer does not remove a previous installation (manually remove it using
settings -> programs and apps)
How to install:
- Download the latest
.msiinstaller from releases - Double-click the installer and click through (
NextandFinish) - Open the command console in the administrator mode (Windows 10: press the right mouse button on the Menu Start and select "Windows PowerShell (Admin)" from the menu).
- Enter
nitropy
Without administrator privileges nitropy might not be able to communicate to device.
Nitrokey FIDO2
Firmware Update
Automatic firmware update is recommended via https://update.nitrokey.com. Alternatively, it is also possible to update the Nitrokey FIDO2 using:
nitropy fido2 update
Your Nitrokey FIDO2 is now updated to the latest firmware.
Nitrokey Start
Firmware Update
Verify device connection
nitropy start list
FSIJ-1.2.15-87042524: Nitrokey Nitrokey Start (RTM.10)
Start update process, logs saved to upgrade.log, handy in case of failure
nitropy start update
Does not ask for confirmation nor the default Admin PIN, handy for batch calls
nitropy start update -p 12345678 -y
Following will flash files from the local disk, instead of downloading them
nitropy start update --regnual $(FIRMWARE_DIR)/regnual.bin --gnuk ${FIRMWARE_DIR}/gnuk.bin
Switching ID
nitropy start set-identity [0,1,2]
Where 0, 1 and 2 are the available IDs.
Maintainers
Current maintainers can be found in MAINTAINERS.MD file.
License
Licensed similarly to upstream, under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Metadata
Release files for pynitrokey-debug 0.4.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pynitrokey-debug-0.4.10.tar.gz | 143.7 kB | Without provenance | Details for pynitrokey-debug-0.4.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pynitrokey_debug-0.4.10-py3-none-any.whl | Python 3 | none | any | Details for pynitrokey_debug-0.4.10-py3-none-any.whl |
Total release size: 391.4 kB
Release files / pynitrokey-debug-0.4.10.tar.gz
| Download URL | pynitrokey-debug-0.4.10.tar.gz |
|---|---|
| Size | 143.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9e8d442d1187562b4988698bb4ac18a9e4cb32a7ca1d0410c969cb0e67a6829
|
|
BLAKE2b-256 checksum How to use checksums |
4bc9464590b9355f58be2656169a1fc6789932a2b8ca6a71e4b6d10c1472c7c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Release files / pynitrokey_debug-0.4.10-py3-none-any.whl
| Download URL | pynitrokey_debug-0.4.10-py3-none-any.whl |
|---|---|
| Size | 247.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c99c0481bb2cbf999809c303110b3e5fe66c96b19c20a639cc2e2240e0cc4f13
|
|
BLAKE2b-256 checksum How to use checksums |
68a40e55c46a7e8eacb2bde24d2b6c0b220b65c20898d05096bfb9746a004600
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Security for pynitrokey-debug 0.4.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.