I'm having an issue on one of my Windows 10 (64-bit) machines when I attempt to read the PGP keys from the card. My second Win 10 machine works w/o issue.
I get the following error:
Code:
λ gpg --card-status
gpg: selecting openpgp failed: Card error
gpg: OpenPGP card not available: Card error
This is the log generated for scdaemon.
Code:
2016-08-04 16:44:01 scdaemon[3628] listening on socket `C:\Users\Jason\AppData\Roaming\gnupg\S.scdaemon'
2016-08-04 16:44:01 scdaemon[3628] handler for fd -1 started
2016-08-04 16:44:01 scdaemon[3628] detected reader `Yubico Yubikey 4 OTP+U2F+CCID 0'
2016-08-04 16:44:01 scdaemon[3628] reader slot 0: not connected
scdaemon[3628]: chan_0x00000238 -> OK GNU Privacy Guard's Smartcard server ready
scdaemon[3628]: chan_0x00000238 <- GETINFO socket_name
scdaemon[3628]: chan_0x00000238 -> D C:\Users\Jason\AppData\Roaming\gnupg\S.scdaemon
scdaemon[3628]: chan_0x00000238 -> OK
scdaemon[3628]: chan_0x00000238 <- OPTION event-signal=200
scdaemon[3628]: chan_0x00000238 -> OK
scdaemon[3628]: chan_0x00000238 <- SERIALNO openpgp
2016-08-04 16:44:01 scdaemon[3628] pcsc_connect failed: sharing violation (0x8010000b)
2016-08-04 16:44:01 scdaemon[3628] reader slot 0: not connected
scdaemon[3628]: chan_0x00000238 -> ERR 100663404 Card error <SCD>
scdaemon[3628]: chan_0x00000238 <- RESTART
scdaemon[3628]: chan_0x00000238 -> OK
2016-08-04 16:44:01 scdaemon[3628] updating slot 0 status: 0x0000->0x0007 (0->1)
2016-08-04 16:44:01 scdaemon[3628] triggering event 200 (00000200) for client -1
I've tried different usb ports, and number of suggests from other forums posts that seemed related.
This machine has read the card about 2 times out of hundreds of tries. All other Yubikey functions (OTP, static password, TOTP in particular) are working without issue on this problem machine as well.
I'm looking for further ideas on how I can possibly identify the cause of this on this single machine.
Thanks!
-j