FreeBSD Setup

Librem Key

Install required packages:

pkg install ccid opensc u2f-devd pcsc-lite pcsc-tools gnupg-pkcs11-scd

The pcscd post-installation instructions require you to add rules to /etc/devd.conf. Do so as instructed.

Give group usb permissions:

# /etc/rc.conf
devfs_system_ruleset="localrules"
# /etc/devfs.rules
[localrules=10]
add path 'usb/*' mode 0660 group usb

Create group usb and add the user:

pw groupadd usb
pw group mod usb -m <user>

Start pcscd at boot:

# /etc/rc.conf
pcscd_enable=YES"

Relog to apply the group changes and start the pcscd service, or just reboot to make sure everything works out of the box on the next boot.