[pkg-gnupg-maint] Bug#852702: [gnupg2] gpg: OpenPGP card not available: No such device after upgrade to 2.1.18-3
Shin Ice
shin.ice at shinice.net
Thu Jan 26 14:46:04 UTC 2017
Package: gnupg2
Version: 2.1.18-3
Severity: important
--- Please enter the report below this line. ---
Hi,
after upgrading gnupg2 (and related) to version 2.1.18-3 the yubikey 4
can't be used. On a different system (still sid) with version 2.1.16-3
all works as desired and designed.
$ gpg2 --card-status
gpg: selecting openpgp failed: No such device
gpg: OpenPGP card not available: No such device
$ pcsc_scan
PC/SC device scanner
V 1.4.27 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau at free.fr>
Compiled with PC/SC lite version: 1.8.17
Using reader plug'n play mechanism
Scanning present readers...
0: Yubico Yubikey 4 CCID 00 00
Thu Jan 26 14:50:02 2017
Reader 0: Yubico Yubikey 4 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):
3B F8 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 34 D4
Yubico Yubikey 4 OTP+CCID
output from /var/log/messages
Jan 26 14:44:15 akira kernel: [ 1065.486401] perf: interrupt took too
long (2507 > 2500), lowering kernel.perf_event_max_sample_rate to 79750
Jan 26 14:48:08 akira kernel: [ 1298.188119] usb 2-1.2: USB disconnect,
device number 13
Jan 26 14:49:58 akira kernel: [ 1408.239508] usb 2-1.2: new full-speed
USB device number 14 using ehci-pci
Jan 26 14:49:58 akira kernel: [ 1408.355525] usb 2-1.2: New USB device
found, idVendor=1050, idProduct=0404
Jan 26 14:49:58 akira kernel: [ 1408.355529] usb 2-1.2: New USB device
strings: Mfr=1, Product=2, SerialNumber=0
Jan 26 14:49:58 akira kernel: [ 1408.355533] usb 2-1.2: Product: Yubikey
4 CCID
Jan 26 14:49:58 akira kernel: [ 1408.355536] usb 2-1.2: Manufacturer:
Yubico
Same output from the system with 2.1.16-3 running:
$ pcsc_scan
PC/SC device scanner
V 1.4.27 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau at free.fr>
Compiled with PC/SC lite version: 1.8.17
Using reader plug'n play mechanism
Scanning present readers...
0: Yubico Yubikey 4 CCID 00 00
Thu Jan 26 14:48:57 2017
Reader 0: Yubico Yubikey 4 CCID 00 00
Card state: Card inserted, Exclusive Mode,
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):
3B F8 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 34 D4
Yubico Yubikey 4 OTP+CCID
$ gpg2 --card-status
Reader ...........: Yubico Yubikey 4 CCID 00 00
output from /var/log/messages
Jan 26 14:40:22 motoko kernel: [1824155.938692] usb 4-2: USB disconnect,
device number 8
Jan 26 14:48:11 motoko kernel: [1824624.984164] usb 4-2: new full-speed
USB device number 9 using ohci-pci
Jan 26 14:48:11 motoko kernel: [1824625.177260] usb 4-2: New USB device
found, idVendor=1050, idProduct=0404
Jan 26 14:48:11 motoko kernel: [1824625.177267] usb 4-2: New USB device
strings: Mfr=1, Product=2, SerialNumber=0
Jan 26 14:48:11 motoko kernel: [1824625.177272] usb 4-2: Product:
Yubikey 4 CCID
Jan 26 14:48:11 motoko kernel: [1824625.177275] usb 4-2: Manufacturer:
Yubico
If you need more infos/tests, feel free to let me know =)
c'ya
Shin
--- System information. ---
Architecture:
Kernel: Linux 4.9.0-1-amd64
Debian Release: 9.0
500 unstable ftp.de.debian.org
500 stable repo.vivaldi.com
500 stable repo.sinew.in
--- Package information. ---
Depends (Version) | Installed
=========================-+-==============
gnupg (>= 2.1.18-3) | 2.1.18-3
Package's Recommends field is empty.
Package's Suggests field is empty.
--
I'm just a placeholder for a really awesome signature...
...that is still missing *sob*
More information about the pkg-gnupg-maint
mailing list