<?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=26&amp;t=2142" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2016-01-21T11:17:37+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=26&amp;t=2142</id>
<entry>
<author><name><![CDATA[Tom2]]></name></author>
<updated>2016-01-21T11:17:37+01:00</updated>
<published>2016-01-21T11:17:37+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2142&amp;p=8207#p8207</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2142&amp;p=8207#p8207"/>
<title type="html"><![CDATA[Re: [QUESTION] - gpg-agent on several platforms requires kil]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2142&amp;p=8207#p8207"><![CDATA[
There should be an scdaemon time out option which may work...<br /><br />--card-timeout n<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3364">Tom2</a> — Thu Jan 21, 2016 11:17 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[draeath]]></name></author>
<updated>2016-01-01T10:24:03+01:00</updated>
<published>2016-01-01T10:24:03+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2142&amp;p=8104#p8104</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2142&amp;p=8104#p8104"/>
<title type="html"><![CDATA[[QUESTION] - gpg-agent on several platforms requires kill]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2142&amp;p=8104#p8104"><![CDATA[
I've got a Yubikey 4 running firmware 4.2.7. It works fine, in that I've successfully got keys loaded and I've tested encryption/decryption/signing working on a machine different than the one I set it all up on.<br /><br />However, there is an odd problem and I feel I may have missed something silly. Note that this is happening on Windows and on OSX, but the commonality on both is I haven't ever used gpg-agent in the past.<br /><br />So, on to the problem! gpg-agent runs scdaemon. This is normal. However, if I remove my yubikey and come back later, and reinsert it... it looks like scdaemon doesn't &quot;see&quot; the card correctly and I get weird results back - sometimes things act like the card is there, some times not. Additionally, an example of some oddness is the PIN length and PIN failure count fields reported back by gpg --card-status all show 0, instead of actual values. I'm suspecting some stuff is perhaps being cached by gpg/scdaemon?<br /><br />To fix this, I have to kill the gpg-agent and scdaemon processes manually. When they are started again by a subsequent usage of gpg, it works again - and continues working until I pull the yubikey later on.<br /><br />Do I need to do anything specifically to make it behave nicely if the key is going to be sporadically detached/reattached? Or am I destined to have to killall gpg-agent &amp;&amp; killall scdaemon every time?<br /><br />The only thing I don't really understand that I've done in the process of following various tutorials is to set &quot;mode 86&quot; on my key. Does 6 vs 86 have anything to do with these shenanigans? Much of the documentation that references this mode setting is either very old or flies over my head. I did notice that when the agent is successfully pulling data from the card, if I were to start the NEO Manager, it can't view applet details. Presumably scdaemon is &quot;locking&quot; the card somehow - don't know if that's important/unusual.<br /><br />Final note: on the Windows (8.1) box, I'm running the official GPG &quot;Modern&quot; 2.1.0 build. On the OSX (El Capitan) box, GPGTools v2015.09.<br /><br />Of course I'm happy to provide any other detail/data that might be required.<br /><br />Cheers!<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4115">draeath</a> — Fri Jan 01, 2016 10:24 am</p><hr />
]]></content>
</entry>
</feed>