Yubico / yubikey-personalization

YubiKey Personalization cross-platform library and tool
https://developers.yubico.com/yubikey-personalization/
BSD 2-Clause "Simplified" License
300 stars 82 forks source link

Allow Yubico Yubikey NEO in U2F+CCID mode to be used as a smartcard. #68

Closed halstead closed 8 years ago

halstead commented 8 years ago

I've disabled the OTP functionality of my NEO-n to prevent accidental brushes of the Yubikey from interfering with my work. My Yubikey appears with a product id that isn't handled by the current udev rules.

Here is the dmesg output when I plug it in.

usb 1-2: New USB device found, idVendor=1050, idProduct=0115 hid-generic 0003:1050:0115.0002: hiddev0,hidraw1: USB HID v1.10 Device [Yubico Yubikey NEO U2F+CCID] on usb-0000:00:14.0-2/input0

This simple change makes everything work for me.

klali commented 8 years ago

udev rules for u2f are placed in the package Yubico/libu2f-host (https://github.com/Yubico/libu2f-host/blob/master/70-old-u2f.rules and https://github.com/Yubico/libu2f-host/blob/master/70-u2f.rules)

I believe that is a better place for them and they try to cover all such devices.

halstead commented 8 years ago

I should have specified that my yubikey works fine for U2F without this change. It fails to work correctly as a smart card without the change in my pull request. The files you linked to do have all the needed product ids while these files do not. I recommend updating these files to include all valid product ids.