Yubico / yubikey-personalization

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

ykchalresp -N causes all later invocations to return error until touch #129

Closed pstray closed 4 years ago

pstray commented 5 years ago

Running "ykchalresp -N ..." with a yubikey that requires key press will cause all other invocations of ykchalresp to return the same error "Yubikey core error: operation would block" until the button is actually pressed.

Maybe ykchalresp could need a -p/--ping option too, as there are several programs (like yubikey-luks) that tests for the presence of the yubikey by sending a request to it... thus you either need a keypress on the key to make that test succeed (without -N), or cause the key to be unusable for unlocking (when using -N).

cyrinux commented 4 years ago

Hi, I confirm the same issue.

klali commented 4 years ago

Yes. This was a firmware bug, I'm not sure at what versions but does not happen on recent YubiKeys.