My Yubikey 4 doesn't seem to be recognized by Gnupg and I am a little lost on how to properly debug this.
I guess my first question is, could me running ykpersonilize and setting the mode to an incorrect have caused this? If so, how can I detect what the current mode is?
GnuPG outputs the following:
Quote:
jeroen@ThinkPad ~ » gpg --card-status
gpg: selecting openpgp failed: Card error
gpg: OpenPGP card not available: Card error
I have tried killing the gnome-keyring-agent but this doesn't seem to have any affect. I even tried logging in from command line only without a Desktop environment to no avail.
pcsc_scan reports the follwing and seems to detect the Yubikey itself:
Quote:
jeroen@ThinkPad ~ » pcsc_scan
PC/SC device scanner
V 1.4.23 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>
Compiled with PC/SC lite version: 1.8.13
Using reader plug'n play mechanism
Scanning present readers...
0: Yubico Yubikey 4 OTP+CCID 00 00
Tue Feb 9 21:10:05 2016
Reader 0: Yubico Yubikey 4 OTP+CCID 00 00
Card state: Card inserted,
ATR: 3B F8 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 34 D4
ATR: 3B F8 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 34 D4
+ TS = 3B --> Direct Convention
+ T0 = F8, Y(1): 1111, K: 8 (historical bytes)
TA(1) = 13 --> Fi=372, Di=4, 93 cycles/ETU
43010 bits/s at 4 MHz, fMax for Fi = 5 MHz => 53763 bits/s
TB(1) = 00 --> VPP is not electrically connected
TC(1) = 00 --> Extra guard time: 0
TD(1) = 81 --> Y(i+1) = 1000, Protocol T = 1
-----
TD(2) = 31 --> Y(i+1) = 0011, Protocol T = 1
-----
TA(3) = FE --> IFSC: 254
TB(3) = 15 --> Block Waiting Integer: 1 - Character Waiting Integer: 5
+ Historical bytes: 59 75 62 69 6B 65 79 34
Category indicator byte: 59 (proprietary format)
+ TCK = D4 (correct checksum)
Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):
NONE
find: ‘/home/jeroen/.cache/smartcard_list.txt’: No such file or directory
Your card is not present in the database.
Please submit your unknown card at:
http://smartcard-atr.appspot.com/parse? ... 6B657934D4So I tried get/set some information from the ykneomgr:
Quote:
jeroen@ThinkPad ~ » ykneomgr -m
00
jeroen@ThinkPad ~ » ykneomgr -M 81
error: ykneomgr_modeswitch (-4): Backend error
I don't know if I need to set the mode or if it should just work. I also don't know what this Backend error is and if I can do anything about it.
As is obvious, I don't know what I am doing, any help would be appreciated. Basically I just want to upload OpenPGP private keys.