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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2016-07-25T13:00:04+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=35&amp;t=2363</id>
<entry>
<author><name><![CDATA[R0xph]]></name></author>
<updated>2016-07-25T12:59:39+01:00</updated>
<published>2016-07-25T12:59:39+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2363&amp;p=8809#p8809</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2363&amp;p=8809#p8809"/>
<title type="html"><![CDATA[Re: [SOLVED] gpshell error 6A82 (Yubikey 4/Edge)]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2363&amp;p=8809#p8809"><![CDATA[
Thank you Chris for your answer.<br /><br />I have been miss-led by the USB descriptor stating &quot;Yubikey 4&quot; instead of &quot;Yubikey Edge&quot;. It would have been wiser to name each devices accordingly.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4398">R0xph</a> — Mon Jul 25, 2016 12:59 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ChrisHalos]]></name></author>
<updated>2016-07-14T17:22:09+01:00</updated>
<published>2016-07-14T17:22:09+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2363&amp;p=8789#p8789</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2363&amp;p=8789#p8789"/>
<title type="html"><![CDATA[Re: [QUESTION] gpshell error 6A82]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2363&amp;p=8789#p8789"><![CDATA[
The YubiKey Edge doesn't provide smart card functionality, so enabling CCID mode on an Edge won't do anything. You can't use it as a smart card. This requires a YubiKey 4 or YubiKey NEO.<br /><br />You also can't use gpshell on a YubiKey 4, or any NEO sold after ~ July 2014, since they don't have updateable applets.<br /><br /><!-- m --><a class="postlink" href="https://www.yubico.com/wp-content/uploads/2015/11/Yubico_YubiKeyEdgeEdgen_ProductSheet_Nov2015.pdf">https://www.yubico.com/wp-content/uploa ... ov2015.pdf</a><!-- m --><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3140">ChrisHalos</a> — Thu Jul 14, 2016 5:22 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[R0xph]]></name></author>
<updated>2016-07-25T13:00:04+01:00</updated>
<published>2016-07-08T15:23:36+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2363&amp;p=8777#p8777</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2363&amp;p=8777#p8777"/>
<title type="html"><![CDATA[[SOLVED] gpshell error 6A82 (Yubikey 4/Edge)]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2363&amp;p=8777#p8777"><![CDATA[
Hello,<br /><br />I have a Yubikey with the following USB descriptor &quot;Yubikey 4 OTP+U2F&quot; and I guess it is a Yubikey Edge.<br />I would like to set up the key as an OpenPGP SmartCard, so I first actived CCID mode using &quot;ykpersonalize -m2&quot; (anyhow &quot;Yubikey NEO Manager&quot; failed to apply the mode setting).<br />Now the key appears with a more satisfying USB descriptor &quot;Yubikey 4 OTP+CCID&quot;, however GPG does not seem to support it:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">% gpg2 --debug-all --debug-level=guru --card-status<br />gpg: reading options from '/home/user/.gnupg/gpg.conf'<br />gpg: enabled debug flags: packet mpi crypto filter iobuf memory cache memstat trust hashing cardio ipc clock lookup extprog<br />gpg: DBG: &#91;not enabled in the source&#93; start<br />gpg: DBG: chan_3 &lt;- OK Pleased to meet you, process 10024<br />gpg: DBG: connection to agent established<br />gpg: DBG: chan_3 -&gt; RESET<br />gpg: DBG: chan_3 &lt;- OK<br />gpg: DBG: chan_3 -&gt; OPTION ttyname=/dev/pts/22<br />gpg: DBG: chan_3 &lt;- OK<br />gpg: DBG: chan_3 -&gt; OPTION ttytype=xterm-256color<br />gpg: DBG: chan_3 &lt;- OK<br />gpg: DBG: chan_3 -&gt; OPTION display=:0<br />gpg: DBG: chan_3 &lt;- OK<br />gpg: DBG: chan_3 -&gt; OPTION xauthority=/home/user/.Xauthority<br />gpg: DBG: chan_3 &lt;- OK<br />gpg: DBG: chan_3 -&gt; OPTION putenv=XMODIFIERS=@im=ibus<br />gpg: DBG: chan_3 &lt;- OK<br />gpg: DBG: chan_3 -&gt; OPTION putenv=GTK_IM_MODULE=ibus<br />gpg: DBG: chan_3 &lt;- OK<br />gpg: DBG: chan_3 -&gt; OPTION putenv=DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-7kXRpcahZL<br />gpg: DBG: chan_3 &lt;- OK<br />gpg: DBG: chan_3 -&gt; OPTION putenv=QT_IM_MODULE=ibus<br />gpg: DBG: chan_3 &lt;- OK<br />gpg: DBG: chan_3 -&gt; OPTION lc-ctype=en_US.UTF-8<br />gpg: DBG: chan_3 &lt;- OK<br />gpg: DBG: chan_3 -&gt; OPTION lc-messages=en_US.UTF-8<br />gpg: DBG: chan_3 &lt;- OK<br />gpg: DBG: chan_3 -&gt; GETINFO version<br />gpg: DBG: chan_3 &lt;- D 2.1.11<br />gpg: DBG: chan_3 &lt;- OK<br />gpg: DBG: chan_3 -&gt; OPTION allow-pinentry-notify<br />gpg: DBG: chan_3 &lt;- OK<br />gpg: DBG: chan_3 -&gt; OPTION agent-awareness=2.1.0<br />gpg: DBG: chan_3 &lt;- OK<br />gpg: DBG: chan_3 -&gt; AGENT_ID<br />gpg: DBG: chan_3 &lt;- ERR 67109139 Unknown IPC command &lt;GPG Agent&gt;<br />gpg: DBG: chan_3 -&gt; SCD GETINFO version<br />gpg: DBG: chan_3 &lt;- D 2.1.11<br />gpg: DBG: chan_3 &lt;- OK<br />gpg: DBG: chan_3 -&gt; SCD SERIALNO openpgp<br />gpg: DBG: chan_3 &lt;- ERR 100663356 Not supported &lt;SCD&gt;<br />gpg: OpenPGP card not available: Not supported<br /></div><br />And here after are the scdaemon logs<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">2016-07-08 15:01:49 scdaemon&#91;10026&#93; listening on socket '/home/user/.gnupg/S.scdaemon'<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; handler for fd -1 started<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: enter: apdu_open_reader: portstr=Yubico Yubikey 4 OTP+CCID<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; detected reader 'Yubico Yubikey 4 OTP+CCID 00 00'<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; reader slot 0: not connected<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: leave: apdu_open_reader =&gt; slot=0 &#91;pc/sc&#93;<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: chan_5 -&gt; OK GNU Privacy Guard's Smartcard server ready<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: chan_5 &lt;- GETINFO socket_name<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: chan_5 -&gt; D /home/user/.gnupg/S.scdaemon<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: chan_5 -&gt; OK<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: chan_5 &lt;- OPTION event-signal=12<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: chan_5 -&gt; OK<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: chan_5 &lt;- GETINFO version<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: chan_5 -&gt; D 2.1.11<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: chan_5 -&gt; OK<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: chan_5 &lt;- SERIALNO openpgp<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: enter: apdu_connect: slot=0<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: feature: code=12, len=4, v=42330012<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: TLV properties: tag=01, len=2, v=00000000<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: TLV properties: tag=03, len=1, v=00000000<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: TLV properties: tag=09, len=1, v=00000000<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: TLV properties: tag=0B, len=2, v=00001050<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: TLV properties: tag=0C, len=2, v=00000405<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: TLV properties: tag=0A, len=4, v=00010000<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; reader slot 0: active protocol: T1<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; slot 0: ATR=3B F8 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 34 D4<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: leave: apdu_connect =&gt; sw=0x0<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: send apdu: c=00 i=A4 p1=00 p2=0C lc=2 le=-1 em=0<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG:   PCSC_data: 00 A4 00 0C 02 3F 00<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG:  response: sw=6D00  datalen=0<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: send apdu: c=00 i=A4 p1=04 p2=00 lc=6 le=-1 em=0<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG:   PCSC_data: 00 A4 04 00 06 D2 76 00 01 24 01<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG:  response: sw=6A82  datalen=0<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; can't select application 'openpgp': Not supported<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: chan_5 -&gt; ERR 100663356 Not supported &lt;SCD&gt;<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: chan_5 &lt;- RESTART<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: chan_5 -&gt; OK<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: enter: apdu_get_status: slot=0 hang=0<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; DBG: leave: apdu_get_status =&gt; sw=0x0 status=7 changecnt=1<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; updating reader 0 (0) status: 0x0000-&gt;0x0007 (0-&gt;1)<br />2016-07-08 15:01:49 scdaemon&#91;10026&#93; sending signal 12 to client 1635<br /></div><br /><br />I thought perhaps the OpenPGP applet is not installed on the key, so I used globalplatform tools and java card kit to compile the applet.<br />However I got an error when I try to install it on the key with gpshell:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">$ LD_LIBRARY_PATH=/usr/local/lib gpshell gpinstall.txt<br />mode_211<br />enable_trace<br />establish_context<br />card_connect<br />select -AID a000000003000000<br />Command --&gt; 00A4040008A000000003000000<br />Wrapped command --&gt; 00A4040008A000000003000000<br />Response &lt;-- 6A82<br />select_application() returns 0x80216A82 (6A82: The application to be selected could not be found.)<br /></div><br /><br />I don't know what's going on here hence I would really appreciate any tips or help ;)<br />Cheers<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4398">R0xph</a> — Fri Jul 08, 2016 3:23 pm</p><hr />
]]></content>
</entry>
</feed>