Yubico / yubikey-personalization-gui

YubiKey Personalization GUI
https://developers.yubico.com/yubikey-personalization-gui
BSD 2-Clause "Simplified" License
198 stars 38 forks source link

Yubikey not recognized with OTP connection mode disabled #61

Closed kasparsd closed 7 years ago

kasparsd commented 8 years ago

I had disabled the OTP connection mode which made the Personalization Tool to not recognize the key.

yubikey-not-inserted

I realize that without the OTP mode there is very little to configure but users might still expect it to be recognized.

CJHarms commented 8 years ago

Can confirm. After disabling OTP Mode on my YubiKey 4 it is no longer detected by the Personalization Tool.

omrltfm commented 7 years ago

how did you fix this? My Yubikey 4 isn't being recognized by the Personalization tool.

kasparsd commented 7 years ago

@omrltfm You need to enable the OTP mode by clicking "Change connection mode".

dagheyman commented 7 years ago

This is by design. OTP mode need to be enabled for this tool to be able to recognise the device. Please note that YubiKey Manager is able to recognise the device in all modes as well as perform the most common slot-based configuration tasks (when OTP is enabled).

kasparsd commented 7 years ago

@dagheyman However, it is confusing for the user that the tool can't find a Yubikey that's actually plugged in the computer. A better UX would be to tell the users to "enable the OTP mode" to start the personalization.

It checks the following NEO device PIDs during yk_open_first_key() which calls yk_open_key():

and all of them require OTP. Same with Yubikey 4 PIDs.

Could we introduce another method such as yk_detect_key() which checks for the presence of either PID?