Skip to main content

Python Library for Nitrokey FIDO2 & Nitrokey Start.

Project description

pynitrokey

A command line interface for the Nitrokey FIDO2 and Nitrokey Start.

Current state

Update to latest firmware versions on the Nitrokey Start and Nitrokey FIDO2 devices was tested. Windows support is 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

Note: support for Nitrokey Start under Windows 10 is not working without installing libusb libraries (to be described).

  1. Download the latest .msi installer from the releases
  2. Double-click the installer and click through (Next and Finish)
  3. 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).
  4. Enter nitropy

Without administrator privileges tool 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.

License

Licensed similarly to upstream, under either of

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

pynitrokey-0.4.1.tar.gz (53.2 kB view details)

Uploaded Source

Built Distribution

pynitrokey-0.4.1-py3-none-any.whl (60.2 kB view details)

Uploaded Python 3

File details

Details for the file pynitrokey-0.4.1.tar.gz.

File metadata

  • Download URL: pynitrokey-0.4.1.tar.gz
  • Upload date:
  • Size: 53.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.24.0

File hashes

Hashes for pynitrokey-0.4.1.tar.gz
Algorithm Hash digest
SHA256 a98df5a1c2995f2246987aa87b95f04b743791ed4e4039f7fc4b908ae1182dfe
MD5 364ef47f9a7f4670b424c777961bfa4b
BLAKE2b-256 441f3af8bacf0800e7804fb4f30c685d75a56e89e3dce7a31959a738c69fc54d

See more details on using hashes here.

File details

Details for the file pynitrokey-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: pynitrokey-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 60.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.24.0

File hashes

Hashes for pynitrokey-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f0e4036e08aea05cd00cccf16a6a3d1ad612453ba1cd82930cfd89f15df891d
MD5 6578c9289d6913d923883065b5689828
BLAKE2b-256 83ee3b832ab95d3ee52ecb7c1bdf385237d2e94e97a1a0bece0a891fac9575da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page