BSD Ports

security/py-yubikey-manager 5.2.0 DragonFly

Python library and command line tool for configuring a YubiKey

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD2CLAUSE
Categories
python, security
Package size
328.9 KiB, 2279.8 KiB installed

Description

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

In the other systems

The newest version among them is 5.8.0, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlysecurity/py-yubikey-manager5.2.0none known-[email protected]-
FreeBSDsecurity/py-yubikey-manager5.7.2_1none known-[email protected]-
NetBSDsecurity/py-yubikey-manager5.8.0nb1 newestnone known-[email protected]2026-10-16
HardenedBSDsecurity/py-yubikey-manager5.7.2_1no data-[email protected]-
GhostBSDsecurity/py-yubikey-manager5.7.2_1no data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg install py311-yubikey-manager

From DPorts:

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

Dependencies

Run dependencies 12

Configuration

No options to configure.

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