Yubico Forum
https://forum.yubico.com/

[SOLVED] gpg4win + yubikey neo 3.2.0
https://forum.yubico.com/viewtopic.php?f=26&t=1718
Page 1 of 1

Author:  beowulf573 [ Wed Jan 21, 2015 9:12 pm ]
Post subject:  [SOLVED] gpg4win + yubikey neo 3.2.0

I've got an older Neo running 3.2.0 that I've configuring with gnupg keys. It works fine under Debian testing and Mac Yosemite. However, I can't detect it under Windows 7 64-bit running gpg4win version 2.2.3.

Trying to read the card status I get:

Code:
C:\Users\beowulf573>gpg --card-status
gpg: selecting openpgp failed: Card error
gpg: OpenPGP card not available: Card error


My scdaemon.conf contains:
Code:
reader-port "Yubico Yubikey NEO OTP+CCID 0"
log-file reader.log
verbose
debug-level guru


and the log file shows:

Code:
2015-01-21 13:41:05 scdaemon[5028] listening on socket `C:\Users\beowulf573\AppData\Roaming\gnupg\S.scdaemon'
2015-01-21 13:41:05 scdaemon[5028] handler for fd -1 started
2015-01-21 13:41:05 scdaemon[5028] detected reader `RICOH Company, Ltd. RICOH SmartCard Reader 0'
2015-01-21 13:41:05 scdaemon[5028] detected reader `Yubico Yubikey NEO OTP+CCID 0'
2015-01-21 13:41:05 scdaemon[5028] reader slot 0: not connected
scdaemon[5028]: chan_00000110 -> OK GNU Privacy Guard's Smartcard server ready
scdaemon[5028]: chan_00000110 <- GETINFO socket_name
scdaemon[5028]: chan_00000110 -> D C:\Users\beowulf573\AppData\Roaming\gnupg\S.scdaemon
scdaemon[5028]: chan_00000110 -> OK
scdaemon[5028]: chan_00000110 <- OPTION event-signal=e0
scdaemon[5028]: chan_00000110 -> OK
scdaemon[5028]: chan_00000110 <- SERIALNO openpgp
2015-01-21 13:41:05 scdaemon[5028] pcsc_connect failed: sharing violation (0x8010000b)
2015-01-21 13:41:05 scdaemon[5028] reader slot 0: not connected
scdaemon[5028]: chan_00000110 -> ERR 100663404 Card error <SCD>
scdaemon[5028]: chan_00000110 <- RESTART
scdaemon[5028]: chan_00000110 -> OK
2015-01-21 13:41:05 scdaemon[5028] updating slot 0 status: 0x0000->0x0007 (0->1)
2015-01-21 13:41:05 scdaemon[5028] triggering event e0 (000000E0) for client -1
scdaemon[5028]: chan_00000110 <- [error: Input/output error]
2015-01-21 13:43:00 scdaemon[5028] Assuan processing failed: Input/output error
2015-01-21 13:43:00 scdaemon[5028] handler for fd -1 terminated
2015-01-21 13:43:00 scdaemon[5028] scdaemon (GnuPG) 2.0.26 stopped


I've also tried disabling the RICOH Smardcard Reader in Device Manager, I didn't notice any difference other than it not showing up in the log file.

The sharing violation seems to be something I wouldn't expect but googling around didn't return anything useful.

Thanks for any help.

Author:  beowulf573 [ Mon Jan 26, 2015 1:08 am ]
Post subject:  Re: [SOLVED] gpg4win + yubikey neo 3.2.0

I'm not sure why but restarting the "Smart Card" service seems to have resolved things. I had rebooted the computer several times while testing this, which would have restarted the service. I also installed the 1.0.8 cap file from the yubico website instead of building my own. I'm not sure if that made any difference or note, it was still failing after I re-installed my keys but before restarting the service.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/