Python Library for Nitrokey FIDO2 & Nitrokey Start.
Project description
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
status
command 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
.msi
installer from releases - Double-click the installer and click through (
Next
andFinish
) - 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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pynitrokey-debug-0.4.8.tar.gz
.
File metadata
- Download URL: pynitrokey-debug-0.4.8.tar.gz
- Upload date:
- Size: 143.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f63dbc90b943698b4583029d9a1b0107c4ce1b89d40b3e18c47ee2423e68746f |
|
MD5 | 8337f82680046c502738e6a8253f08d2 |
|
BLAKE2b-256 | 22675866b0acee1ba0e774a0e36b227ef1ea014f58aa6d2ed07036efea67e823 |
File details
Details for the file pynitrokey_debug-0.4.8-py3-none-any.whl
.
File metadata
- Download URL: pynitrokey_debug-0.4.8-py3-none-any.whl
- Upload date:
- Size: 247.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7f421514249028f5c10ded380b44021112e9a521112593b666d0f22e2a0faa2 |
|
MD5 | a4c5f25925cf207f79a1f43da31a59ca |
|
BLAKE2b-256 | 76b6cc054df412dd1f07a91e81168ba39cb2333a77fb31b6588d85ddbb515d69 |