Yubico / yubikey-manager

Python library and command line tool for configuring any YubiKey over all USB interfaces.
https://developers.yubico.com/yubikey-manager/
BSD 2-Clause "Simplified" License
874 stars 125 forks source link

`ykman openpgp info` and related `keys set-touch` commands fail. #474

Open x10an14 opened 2 years ago

x10an14 commented 2 years ago

Steps to reproduce

See: https://paste.sr.ht/~x10an14/0107b0b76d9cc1c516f6a98138c3edf44b07fb07

Expected result

The ykman openpgp info (and other related ykman openpgpcommands) not to fail.

Actual results and logs

See above paste.

Other info

It suddenly stopped working in the midst of a "update expiry date of all my gpg subkeys across my yubikeys". ykman openpgp info and related ykman openpgp keys set-touch commands work fine on another machine, one which I don't have any USB-C ports easily available on.

KlavsKlavsen commented 2 years ago

I have the same problem on Ubuntu 21.10 with yubikey-manager installed from OS repos. ubuntu version: 4.0.0~a1-4 I tried dl'ing the yubikey-manager gui - but does not seem to support setting touch on openpgp. output from ykman info:

ykman info

Device type: YubiKey 5C Nano Serial number: 10124802 Firmware version: 5.1.2 Form factor: Nano (USB-C) Enabled USB interfaces: OTP, FIDO, CCID

Applications OTP Enabled FIDO U2F Enabled OpenPGP Enabled PIV Enabled OATH Enabled FIDO2 Enabled

KlavsKlavsen commented 2 years ago

I upgraded ykman with : pip install -U yubikey-manager (as root) and I still get the same error with v4.0.8 installed.

KlavsKlavsen commented 2 years ago

I was able to make it work by entering: ykman config mode ccid and re-inserting yubikey (tip from other issue here)

jasom commented 1 year ago

I had to install pcscd-lite to get this to work.

corite commented 1 year ago

I have the same problem on Fedora 37. pcsc-lite is installed and ykman config mode ccid didn't work for me either (and is also not an option for me since I need the other functionality too). Does someone have an update on this problem and it's solution(s)?