BSD Ports

security/py-yubikey-manager 5.7.2_1 FreeBSD

Python library and command line tool for configuring a YubiKey

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD2CLAUSE
Categories
security, python
Package size
419.0 KiB, 2577.3 KiB installed

Description

Python library and command line tool for configuring any YubiKey over all USB transports.

In the other systems

SystemPortVersion
FreeBSDsecurity/py-yubikey-manager5.7.2_1
NetBSDsecurity/py-yubikey-manager5.8.0nb1
DragonFlysecurity/py-yubikey-manager5.2.0
HardenedBSDsecurity/py-yubikey-manager5.7.2_1
GhostBSDsecurity/py-yubikey-manager5.7.2_1

Install

Binary package:

pkg install py312-yubikey-manager

From the ports tree:

cd /usr/ports/security/py-yubikey-manager/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-yubikey-manager>0:security/py-yubikey-manager

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest5.7.2_15.7.2_14.0.9_45.2.05.7.2_1
FreeBSD:14:quarterly5.7.2_15.7.2_1n/a5.2.05.7.2_1
FreeBSD:15:latest5.7.2_15.7.2_1n/a5.2.05.2.0
FreeBSD:15:quarterly5.7.2_15.7.2_1n/an/an/a
FreeBSD:16:latest5.7.2_15.7.2_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 10

Runtime 9

Test 2

The full lists below include those, and their dependencies in turn.

Build dependencies 69
Run dependencies 65

Configuration

No options to configure.

USES
dos2unix python
Service scripts
none

Message after installing

In order to use `ykman otp` commands, you need to make sure the uhid(4)
driver attaches to the USB device:

  # usbconfig -d ugenX.Y add_quirk UQ_KBD_IGNORE
  # usbconfig -d ugenX.Y reset

The correct device to operate on (ugenX.Y) can be determined using
`usbconfig list`.

When using FreeBSD 13 or higher, you can switch to the more modern
hidraw(4) driver. This allows YubiKey Manager to access OTP HID in a
non-exclusive way, so that the key will still function as a USB keyboard:

  # sysrc kld_list+="hidraw hkbd"
  # cat >>/boot/loader.conf<<EOF
  hw.usb.usbhid.enable="1"
  hw.usb.quirk.0="0x1050 0x0010 0 0xffff UQ_KBD_IGNORE"  # YKS_OTP
  hw.usb.quirk.1="0x1050 0x0110 0 0xffff UQ_KBD_IGNORE"  # NEO_OTP
  hw.usb.quirk.2="0x1050 0x0111 0 0xffff UQ_KBD_IGNORE"  # NEO_OTP_CCID
  hw.usb.quirk.3="0x1050 0x0114 0 0xffff UQ_KBD_IGNORE"  # NEO_OTP_FIDO
  hw.usb.quirk.4="0x1050 0x0116 0 0xffff UQ_KBD_IGNORE"  # NEO_OTP_FIDO_CCID
  hw.usb.quirk.5="0x1050 0x0401 0 0xffff UQ_KBD_IGNORE"  # YK4_OTP
  hw.usb.quirk.6="0x1050 0x0403 0 0xffff UQ_KBD_IGNORE"  # YK4_OTP_FIDO
  hw.usb.quirk.7="0x1050 0x0405 0 0xffff UQ_KBD_IGNORE"  # YK4_OTP_CCID
  hw.usb.quirk.8="0x1050 0x0407 0 0xffff UQ_KBD_IGNORE"  # YK4_OTP_FIDO_CCID
  hw.usb.quirk.9="0x1050 0x0410 0 0xffff UQ_KBD_IGNORE"  # YKP_OTP_FIDO
  EOF
  # reboot

Files

distinfo 1
FileSizeSHA256
yubikey_manager-5.7.2.tar.gz2222999aeb4035dcff8f6cb792e83f36e6a9152a9b5b65ac2c2e25e5f20d53c6064e62
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.