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

card error when trying to use yubikey with openPGP
https://forum.yubico.com/viewtopic.php?f=26&t=2619
Page 1 of 1

Author:  narrcissu [ Mon Apr 10, 2017 4:06 am ]
Post subject:  card error when trying to use yubikey with openPGP

gpg2 --card-status

Failed & Get the following log

Code:
2017-04-10 11:03:47 gpg-agent[14] listening on socket '/root/.gnupg/S.gpg-agent'
2017-04-10 11:03:47 gpg-agent[14] listening on socket '/root/.gnupg/S.gpg-agent.ssh'
2017-04-10 11:03:47 gpg-agent[15] gpg-agent (GnuPG) 2.1.11 started
2017-04-10 11:03:48 gpg-agent[15] handler 0x7f23a2bf0700 for fd 6 started
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 -> OK Pleased to meet you, process 12
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 <- RESET
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 -> OK
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 <- OPTION ttyname=/dev/tty1
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 -> OK
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 <- OPTION ttytype=xterm
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 -> OK
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 <- OPTION lc-ctype=en_US.UTF-8
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 -> OK
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 <- OPTION lc-messages=en_US.UTF-8
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 -> OK
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 <- GETINFO version
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 -> D 2.1.11
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 -> OK
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 <- OPTION allow-pinentry-notify
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 -> OK
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 <- OPTION agent-awareness=2.1.0
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 -> OK
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 <- AGENT_ID
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 -> ERR 67109139 Unknown IPC command <GPG Agent>
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 <- SCD GETINFO version
2017-04-10 11:03:48 gpg-agent[15] no running SCdaemon - starting it
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_7 <- OK GNU Privacy Guard's Smartcard server ready
2017-04-10 11:03:48 gpg-agent[15] DBG: first connection to SCdaemon established
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_7 -> GETINFO socket_name
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_7 <- D /root/.gnupg/S.scdaemon
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_7 <- OK
2017-04-10 11:03:48 gpg-agent[15] DBG: additional connections at '/root/.gnupg/S.scdaemon'
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_7 -> OPTION event-signal=12
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_7 <- OK
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_7 -> GETINFO version
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_7 <- D 2.1.11
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_7 <- OK
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 -> D 2.1.11
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 -> OK
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 <- SCD SERIALNO openpgp
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_7 -> SERIALNO openpgp
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_7 <- ERR 100663404 Card error <SCD>
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 -> ERR 100663404 Card error <SCD>
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_6 <- [eof]
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_7 -> RESTART
2017-04-10 11:03:48 gpg-agent[15] DBG: chan_7 <- OK
2017-04-10 11:03:48 gpg-agent[15] handler 0x7f23a2bf0700 for fd 6 terminated

Author:  mattlegitt [ Mon Apr 10, 2017 7:57 pm ]
Post subject:  Re: card error when trying to use yubikey with openPGP

Hello narrcissu,

Can you provide more details? such as OS version?

Best Regards,
Matthew
Yubico Support

Author:  narrcissu [ Thu Apr 13, 2017 11:48 am ]
Post subject:  Re: card error when trying to use yubikey with openPGP

mattlegitt wrote:
Hello narrcissu,

Can you provide more details? such as OS version?

Best Regards,
Matthew
Yubico Support


It's Linux on windows 10 (based on Cygwin). Ver 3.4.0+

Author:  mattlegitt [ Thu Apr 13, 2017 6:01 pm ]
Post subject:  Re: card error when trying to use yubikey with openPGP

Hello Narrcissu,

USB passthru from running linux on Windows is very hit and miss. It maybe better to post on cygwin's forums to see if someone has a workaround. not even the (bash on Windows) works for this.

Best Regards,
Matthew
Yubico Support

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