yubikey-agent icon indicating copy to clipboard operation
yubikey-agent copied to clipboard

Ignore unready cards

Open bertschneider opened this issue 3 years ago • 3 comments

If other cards, e.g. due to internal card readers, are present, they are probably preferred and the YubiKey can not be used. Ignore unready cards and use the first available one.

Internal card readers are often present but seldom used. But they probably show up, at least that's the case on my system, before the external YubiKey and hence prevent its usage for yubikey-agent. When using the first ready card chances are much higher that it's actually the intended YubiKey.

bertschneider avatar Jun 09 '22 12:06 bertschneider

Related to https://github.com/FiloSottile/yubikey-agent/pull/54

bertschneider avatar Jun 09 '22 12:06 bertschneider

Since #54 was closed without merging it made yubikey-agent unusable for me. I now use https://github.com/smlx/piv-agent instead, you might be interested in trying that.

smlx avatar Jun 09 '22 23:06 smlx

@smlx I didn't know that project. Thx for the hint!

bertschneider avatar Jun 10 '22 09:06 bertschneider

Thank you! I made a small change to ensure the Open error is not dropped on the floor.

FiloSottile avatar Dec 28 '22 15:12 FiloSottile