Yubikey: Difference between revisions

imported>Flyfloh
No edit summary
imported>Flokli
remove udev rules for u2f stuff, handled by udev natively.
Line 1: Line 1:
This article describes how [https://yubico.com Yubico]'s [[Wikipedia:YubiKey|YubiKey]] works and how you can use it.
This article describes how [https://yubico.com Yubico]'s [[Wikipedia:YubiKey|YubiKey]] works and how you can use it.


To access the yubikey as user add the following udev rules to your configuration.nix:
To access the yubikey as user, no custom udev rules should be necessary, as udev gained native support to handle FIDO security tokens.
 
<syntaxHighlight lang=nix>
services.udev.packages = [ pkgs.yubikey-personalization ];
</syntaxHighlight>
 
As the yubikey-personalization tool does [https://github.com/Yubico/yubikey-personalization/issues/57 not support all yubico products] you might want to add the libu2f-host udev rules to your configuration.nix:
<syntaxHighlight lang=nix>
services.udev.packages = [ pkgs.libu2f-host ];
</syntaxHighlight>


To use the smart card mode (CCID) of Yubikey, you will also need the PCSC-Lite daemon:
To use the smart card mode (CCID) of Yubikey, you will also need the PCSC-Lite daemon: