<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=35&amp;t=2388" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2017-07-24T19:50:54+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=35&amp;t=2388</id>
<entry>
<author><name><![CDATA[jrotello]]></name></author>
<updated>2017-07-24T19:50:54+01:00</updated>
<published>2017-07-24T19:50:54+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2388&amp;p=9682#p9682</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=9682#p9682"/>
<title type="html"><![CDATA[Re: [QUESTION] - gpg: selecting openpgp failed: Card error]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=9682#p9682"><![CDATA[
@jcross -<br /><br />Unfortunately not. I have since upgraded the problem laptop, but the new one is having the same issue.<br /><br />The Yubikey is recognized just fine, but something is preventing gpg from accessing it exclusively. I suspect it to be my VPN software or the Symantec PKI software installed on these machines, but I have tried disabling everything I could find relating to them. I'm just not sure what else I can do to diagnose the issue.<br /><br />I have a Surface Pro 4 that work fine with it, but both my old and new dell laptops are having nothing to do with it.<br /><br />It's unfortunate because I really want to use it, but I need it on all my machines, not just one. Please respond to this thread if you get anywhere with it and I will do the same.<br /><br />-j<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4428">jrotello</a> — Mon Jul 24, 2017 7:50 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jcross]]></name></author>
<updated>2017-05-03T21:22:47+01:00</updated>
<published>2017-05-03T21:22:47+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2388&amp;p=9567#p9567</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=9567#p9567"/>
<title type="html"><![CDATA[Re: [QUESTION] - gpg: selecting openpgp failed: Card error]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=9567#p9567"><![CDATA[
Any luck fixing this?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3978">jcross</a> — Wed May 03, 2017 9:22 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jrotello]]></name></author>
<updated>2016-08-27T02:32:30+01:00</updated>
<published>2016-08-27T02:32:30+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8910#p8910</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8910#p8910"/>
<title type="html"><![CDATA[Re: [QUESTION] - gpg: selecting openpgp failed: Card error]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8910#p8910"><![CDATA[
Definitely don't need those commands. It works on one machine, but not the other. It has to be something specific to that machine. I'm just at a loss on how to continue troubleshooting it.<br /><br />-j<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4428">jrotello</a> — Sat Aug 27, 2016 2:32 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ChrisHalos]]></name></author>
<updated>2016-08-22T16:59:09+01:00</updated>
<published>2016-08-22T16:59:09+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8897#p8897</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8897#p8897"/>
<title type="html"><![CDATA[Re: [QUESTION] - gpg: selecting openpgp failed: Card error]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8897#p8897"><![CDATA[
Changes to the PIV applet won't affect the OpenPGP applet, and I haven't seen anything indicating that a CCC needs to be set for MS Windows anyway (we don't need to do this for domain login with slot 9a, for example).<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3140">ChrisHalos</a> — Mon Aug 22, 2016 4:59 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mouse008]]></name></author>
<updated>2016-08-21T04:39:13+01:00</updated>
<published>2016-08-21T04:39:13+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8892#p8892</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8892#p8892"/>
<title type="html"><![CDATA[Re: [QUESTION] - gpg: selecting openpgp failed: Card error]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8892#p8892"><![CDATA[
I've no idea if the following would or would not help. But YubiKey (NEO and 4) does not come from the factory fully initialized in PIV mode. In order for it to be recognized as PIV, two data objects must be created: CHUID and CCC. You can do it with<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">yubico-piv-tool -a set-ccc -a set-chuid</div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4029">mouse008</a> — Sun Aug 21, 2016 4:39 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jrotello]]></name></author>
<updated>2016-08-15T20:05:17+01:00</updated>
<published>2016-08-15T20:05:17+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8879#p8879</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8879#p8879"/>
<title type="html"><![CDATA[Re: [QUESTION] - gpg: selecting openpgp failed: Card error]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8879#p8879"><![CDATA[
I've noticed that the &quot;Identity Device (NIST SP 800-73 [PIV])&quot; smart card is not showing up in device manager on the problem machine. The &quot;Microsoft Usbccid Smartcard Reader (WUDF)&quot; device IS found and showing up in device manager.<br /><br />I am at a loss as to how to continue to troubleshoot this issue. Are there tools I can use to help identify the sharing violation?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4428">jrotello</a> — Mon Aug 15, 2016 8:05 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jrotello]]></name></author>
<updated>2016-08-05T03:50:30+01:00</updated>
<published>2016-08-05T03:50:30+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8851#p8851</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8851#p8851"/>
<title type="html"><![CDATA[Re: [QUESTION] - gpg: selecting openpgp failed: Card error]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8851#p8851"><![CDATA[
Yeah, I've killed gpg-agent and scdaemon countless times. I don't believe this machine has another smart card reader (I certainly don't see one). Device manager doesn't show any other smart card readers either.<br /><br />-j<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4428">jrotello</a> — Fri Aug 05, 2016 3:50 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ChrisHalos]]></name></author>
<updated>2016-08-05T00:33:06+01:00</updated>
<published>2016-08-05T00:33:06+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8843#p8843</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8843#p8843"/>
<title type="html"><![CDATA[Re: [QUESTION] - gpg: selecting openpgp failed: Card error]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8843#p8843"><![CDATA[
The error is a sharing violation, so something else is accessing the card. Have you tried ending gpg-agent and scdaemon? (Task Manager &gt; More Details - Items are listed under &quot;Background Processes&quot; under GnuPG) Perhaps there is an internal smart card reader on this computer and gpg is getting confused? (check Device Manager under &quot;smart card readers&quot;)<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3140">ChrisHalos</a> — Fri Aug 05, 2016 12:33 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[jrotello]]></name></author>
<updated>2016-08-04T23:08:12+01:00</updated>
<published>2016-08-04T23:08:12+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8842#p8842</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8842#p8842"/>
<title type="html"><![CDATA[[QUESTION] - gpg: selecting openpgp failed: Card error]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2388&amp;p=8842#p8842"><![CDATA[
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.<br /><br />I get the following error:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">λ gpg --card-status<br />gpg: selecting openpgp failed: Card error<br />gpg: OpenPGP card not available: Card error<br /></div><br /><br />This is the log generated for scdaemon.<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">2016-08-04 16:44:01 scdaemon&#91;3628&#93; listening on socket `C:\Users\Jason\AppData\Roaming\gnupg\S.scdaemon'<br />2016-08-04 16:44:01 scdaemon&#91;3628&#93; handler for fd -1 started<br />2016-08-04 16:44:01 scdaemon&#91;3628&#93; detected reader `Yubico Yubikey 4 OTP+U2F+CCID 0'<br />2016-08-04 16:44:01 scdaemon&#91;3628&#93; reader slot 0: not connected<br />scdaemon&#91;3628&#93;: chan_0x00000238 -&gt; OK GNU Privacy Guard's Smartcard server ready<br />scdaemon&#91;3628&#93;: chan_0x00000238 &lt;- GETINFO socket_name<br />scdaemon&#91;3628&#93;: chan_0x00000238 -&gt; D C:\Users\Jason\AppData\Roaming\gnupg\S.scdaemon<br />scdaemon&#91;3628&#93;: chan_0x00000238 -&gt; OK<br />scdaemon&#91;3628&#93;: chan_0x00000238 &lt;- OPTION event-signal=200<br />scdaemon&#91;3628&#93;: chan_0x00000238 -&gt; OK<br />scdaemon&#91;3628&#93;: chan_0x00000238 &lt;- SERIALNO openpgp<br />2016-08-04 16:44:01 scdaemon&#91;3628&#93; pcsc_connect failed: sharing violation (0x8010000b)<br />2016-08-04 16:44:01 scdaemon&#91;3628&#93; reader slot 0: not connected<br />scdaemon&#91;3628&#93;: chan_0x00000238 -&gt; ERR 100663404 Card error &lt;SCD&gt;<br />scdaemon&#91;3628&#93;: chan_0x00000238 &lt;- RESTART<br />scdaemon&#91;3628&#93;: chan_0x00000238 -&gt; OK<br />2016-08-04 16:44:01 scdaemon&#91;3628&#93; updating slot 0 status: 0x0000-&gt;0x0007 (0-&gt;1)<br />2016-08-04 16:44:01 scdaemon&#91;3628&#93; triggering event 200 (00000200) for client -1<br /></div><br /><br />I've tried different usb ports, and number of suggests from other forums posts that seemed related. <br /><br />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.<br /><br />I'm looking for further ideas on how I can possibly identify the cause of this on this single machine.<br /><br />Thanks!<br /><br />-j<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4428">jrotello</a> — Thu Aug 04, 2016 11:08 pm</p><hr />
]]></content>
</entry>
</feed>