Yubico Forum https://forum.yubico.com/ |
|
"Card not present" with GPG https://forum.yubico.com/viewtopic.php?f=26&t=1878 |
Page 1 of 1 |
Author: | pigmonkey [ Wed May 13, 2015 1:02 am ] |
Post subject: | "Card not present" with GPG |
I am attempting to get my Yubikey Neo working as a smartcard with GnuPG on Arch Linux. I first set it to mode 82: Code: $ ykpersonalize -m82 Firmware version 3.4.1 Touch level 1541 Program sequence 1 The USB mode will be set to: 0x82 Commit? (y/n) [n]: y After this, I removed the key and reinserted it. GPG fails to recognize the card. Code: $ gpg --card-status gpg: selecting openpgp failed: Card not present gpg: OpenPGP card not available: Card not present Following is some version info, in case it is helpful. Code: $ ykinfo -a serial: 3631540 serial_hex: 3769b4 serial_modhex: eihknf version: 3.4.1 touch_level: 1541 programming_sequence: 2 slot1_status: 1 slot2_status: 0 vendor_id: 1050 product_id: 111 $ gpg --version gpg (GnuPG) 2.1.3 libgcrypt 1.6.3 ... I'm running this on a Thinkpad laptop, which does have a built-in smartcard reader. I've tried to specify the Yubikey in my scdaemon config using some of the methods I've seen on the forum, but none seem to make any difference. Code: $ cat ~/.gnupg/scdaemon.conf verbose reader-port "Yubico Yubikey NEO OTP+CCID 0" reader-port "Yubico Yubikey NEO OTP+CCID 00 00" reader-port "Yubico Yubikey NEO OTP+CCID 01 00" When I insert my yubikey, the light is not on. When I press the button, it outputs a string and the light stays on for a few seconds. |
Author: | pigmonkey [ Wed May 13, 2015 1:16 am ] |
Post subject: | Re: "Card not present" with GPG |
Using pcsc_scan I determined which port to specify for the yubikey. Code: $ pcsc_scan -n 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.12 Using reader plug'n play mechanism Scanning present readers... 0: Yubico Yubikey NEO OTP+CCID 00 00 ... I changed my scdaemon config, restarted the running gpg-agent and scdaemon, and GPG still reports "card not present". Code: $ cat ~/.gnupg/scdaemon.conf
reader-port "Yubico Yubikey NEO OTP+CCID 00 00" verbose |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |