<?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=2664" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2017-07-28T02:03:52+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=35&amp;t=2664</id>
<entry>
<author><name><![CDATA[jcross]]></name></author>
<updated>2017-07-28T02:03:52+01:00</updated>
<published>2017-07-28T02:03:52+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2664&amp;p=9692#p9692</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2664&amp;p=9692#p9692"/>
<title type="html"><![CDATA[Re: OS X Sierra 10.12.5 Yubikey gpg issues]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2664&amp;p=9692#p9692"><![CDATA[
Same error message when using Yubikey Neo-N on OS X El Capitan 10.11.6 on an early 2014 MBA.<br />I'm using GnuPG from <!-- m --><a class="postlink" href="https://gpgtools.org">https://gpgtools.org</a><!-- m --><br />Error went away after a restart.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3978">jcross</a> — Fri Jul 28, 2017 2:03 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[crusso]]></name></author>
<updated>2017-07-17T01:37:21+01:00</updated>
<published>2017-07-17T01:37:21+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2664&amp;p=9661#p9661</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2664&amp;p=9661#p9661"/>
<title type="html"><![CDATA[Re: OS X Sierra 10.12.5 Yubikey gpg issues]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2664&amp;p=9661#p9661"><![CDATA[
I'm having this exact same problem.<br /><br />Any clues so far?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4848">crusso</a> — Mon Jul 17, 2017 1:37 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[macosx2017]]></name></author>
<updated>2017-07-08T01:14:48+01:00</updated>
<published>2017-07-08T01:14:48+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2664&amp;p=9650#p9650</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2664&amp;p=9650#p9650"/>
<title type="html"><![CDATA[OS X Sierra 10.12.5 Yubikey gpg issues]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2664&amp;p=9650#p9650"><![CDATA[
Recently picked up a Yubikey 4c and have been having a hell of a time debugging why gpg and it won't work on OS X 10.12.5.<br /><br />Basically when you run gpg --card-edit you get the dreaded <div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg --card-status<br />gpg: selecting openpgp failed: Operation not supported by device<br />gpg: OpenPGP card not available: Operation not supported by device</div><br /><br />So, I tried all the usual tricks of killing the scdaemon, restarting all the gpg components, with no success. What is really annoying is it works perfectly fine in archlinux.<br /><br />Here is some debugging information provided by scdaemon<div class="codetitle"><b>Code:</b></div><div class="codecontent">2017-07-07 16:56:57 scdaemon&#91;7083&#93; DBG: chan_5 &lt;- RESTART<br />2017-07-07 16:56:57 scdaemon&#91;7083&#93; DBG: chan_5 -&gt; OK<br />2017-07-07 17:05:30 scdaemon&#91;7083&#93; DBG: chan_5 &lt;- GETINFO version<br />2017-07-07 17:05:30 scdaemon&#91;7083&#93; DBG: chan_5 -&gt; D 2.1.21<br />2017-07-07 17:05:30 scdaemon&#91;7083&#93; DBG: chan_5 -&gt; OK<br />2017-07-07 17:05:30 scdaemon&#91;7083&#93; DBG: chan_5 &lt;- SERIALNO openpgp<br />2017-07-07 17:05:30 scdaemon&#91;7083&#93; DBG: enter: apdu_open_reader: portstr=(null)<br />2017-07-07 17:05:30 scdaemon&#91;7083&#93; detected reader 'Yubico Yubikey 4 OTP+U2F+CCID'<br />2017-07-07 17:05:30 scdaemon&#91;7083&#93; reader slot 0: not connected<br />2017-07-07 17:05:30 scdaemon&#91;7083&#93; DBG: leave: apdu_open_reader =&gt; slot=0 &#91;pc/sc&#93;<br />2017-07-07 17:05:30 scdaemon&#91;7083&#93; DBG: enter: apdu_connect: slot=0<br />2017-07-07 17:05:30 scdaemon&#91;7083&#93; pcsc_control failed: not transacted (0x80100016)<br />2017-07-07 17:05:30 scdaemon&#91;7083&#93; pcsc_vendor_specific_init: GET_FEATURE_REQUEST failed: 65547<br />2017-07-07 17:05:30 scdaemon&#91;7083&#93; reader slot 0: active protocol: T1<br />2017-07-07 17:05:30 scdaemon&#91;7083&#93; slot 0: ATR=3B F8 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 34 D4<br />2017-07-07 17:05:30 scdaemon&#91;7083&#93; DBG: leave: apdu_connect =&gt; sw=0x0<br />2017-07-07 17:05:30 scdaemon&#91;7083&#93; DBG: send apdu: c=00 i=A4 p1=00 p2=0C lc=2 le=-1 em=0<br />2017-07-07 17:05:30 scdaemon&#91;7083&#93; DBG:   PCSC_data: 00 A4 00 0C 02 3F 00<br />2017-07-07 17:05:33 scdaemon&#91;7083&#93; pcsc_transmit failed: not transacted (0x80100016)<br />2017-07-07 17:05:33 scdaemon&#91;7083&#93; apdu_send_simple(0) failed: general error<br />2017-07-07 17:05:33 scdaemon&#91;7083&#93; DBG: send apdu: c=00 i=A4 p1=04 p2=00 lc=6 le=-1 em=0<br />2017-07-07 17:05:33 scdaemon&#91;7083&#93; DBG:   PCSC_data: 00 A4 04 00 06 D2 76 00 01 24 01<br />2017-07-07 17:05:36 scdaemon&#91;7083&#93; pcsc_transmit failed: not transacted (0x80100016)<br />2017-07-07 17:05:36 scdaemon&#91;7083&#93; apdu_send_simple(0) failed: general error<br />2017-07-07 17:05:36 scdaemon&#91;7083&#93; can't select application 'openpgp': Not supported<br />2017-07-07 17:05:36 scdaemon&#91;7083&#93; DBG: enter: apdu_close_reader: slot=0<br />2017-07-07 17:05:36 scdaemon&#91;7083&#93; DBG: enter: apdu_disconnect: slot=0<br />2017-07-07 17:05:36 scdaemon&#91;7083&#93; DBG: leave: apdu_disconnect =&gt; sw=0x0<br />2017-07-07 17:05:36 scdaemon&#91;7083&#93; DBG: leave: apdu_close_reader =&gt; 0x0 (close_reader)<br />2017-07-07 17:05:36 scdaemon&#91;7083&#93; DBG: chan_5 -&gt; ERR 100696144 Operation not supported by device &lt;SCD&gt;<br />2017-07-07 17:05:36 scdaemon&#91;7083&#93; DBG: chan_5 &lt;- RESTART<br /></div><br /><br />and more information from gpg-agent.log<div class="codetitle"><b>Code:</b></div><div class="codecontent">2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 -&gt; OK Pleased to meet you<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 &lt;- RESET<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 -&gt; OK<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 &lt;- OPTION ttyname=/dev/ttys000<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 -&gt; OK<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 &lt;- OPTION ttytype=xterm-256color<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 -&gt; OK<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 &lt;- OPTION lc-ctype=en_US.UTF-8<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 -&gt; OK<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 &lt;- OPTION lc-messages=en_US.UTF-8<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 -&gt; OK<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 &lt;- GETINFO version<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 -&gt; D 2.1.21<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 -&gt; OK<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 &lt;- OPTION allow-pinentry-notify<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 -&gt; OK<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 &lt;- OPTION agent-awareness=2.1.0<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 -&gt; OK<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 &lt;- SCD GETINFO version<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; new connection to SCdaemon established (reusing)<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_9 -&gt; GETINFO version<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_9 &lt;- D 2.1.21<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_9 &lt;- OK<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 -&gt; D 2.1.21<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 -&gt; OK<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_8 &lt;- SCD SERIALNO openpgp<br />2017-07-07 17:05:30 gpg-agent&#91;7082&#93; DBG: chan_9 -&gt; SERIALNO openpgp<br />2017-07-07 17:05:36 gpg-agent&#91;7082&#93; DBG: chan_9 &lt;- ERR 100696144 Operation not supported by device &lt;SCD&gt;<br />2017-07-07 17:05:36 gpg-agent&#91;7082&#93; DBG: chan_8 -&gt; ERR 100696144 Operation not supported by device &lt;SCD&gt;<br />2017-07-07 17:05:36 gpg-agent&#91;7082&#93; DBG: chan_8 &lt;- &#91;eof&#93;<br />2017-07-07 17:05:36 gpg-agent&#91;7082&#93; DBG: chan_9 -&gt; RESTART<br /></div><br /><br />Here is my scdaemon.conf that I've already tried some troubleshooting settings from previous forum posts<div class="codetitle"><b>Code:</b></div><div class="codecontent">pcsc-driver /System/Library/Frameworks/PCSC.framework/PCSC<br />card-timeout 1<br />disable-ccid<br />log-file /Users/admin/.gnupg/scdaemon.log.txt<br />verbose<br />debug-level guru</div><br /><br />gpg version<div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg --version<br />gpg (GnuPG) 2.1.21<br />libgcrypt 1.7.8<br /></div><br /><br />pcsctest seems to be able to communicate<div class="codetitle"><b>Code:</b></div><div class="codecontent">pcsctest <br /><br />MUSCLE PC/SC Lite Test Program<br /><br />Testing SCardEstablishContext    : Command successful.<br />Testing SCardGetStatusChange <br />Please insert a working reader   : Command successful.<br />Testing SCardListReaders         : Command successful.<br />Reader 01: Yubico Yubikey 4 OTP+U2F+CCID<br />Enter the reader number          : 1<br />Waiting for card insertion         <br />                                 : Command successful.<br />Testing SCardConnect             : Command successful.<br />Testing SCardStatus              : Command successful.<br />Current Reader Name              : Yubico Yubikey 4 OTP+U2F+CCID<br />Current Reader State             : 0x54<br />Current Reader Protocol          : 0x1<br />Current Reader ATR Size          : 18 (0x12)<br />Current Reader ATR Value         : 3B F8 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 34 D4 <br />Testing SCardDisconnect          : Command successful.<br />Testing SCardReleaseContext      : Command successful.<br />Testing SCardEstablishContext    : Command successful.<br />Testing SCardGetStatusChange <br />Please insert a working reader   : Command successful.<br />Testing SCardListReaders         : Command successful.<br />Reader 01: Yubico Yubikey 4 OTP+U2F+CCID<br /></div><br /><br />Anyone got any ideas?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4839">macosx2017</a> — Sat Jul 08, 2017 1:14 am</p><hr />
]]></content>
</entry>
</feed>