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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2013-12-10T18:02:06+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=26&amp;t=1254</id>
<entry>
<author><name><![CDATA[asayler]]></name></author>
<updated>2013-12-10T18:02:06+01:00</updated>
<published>2013-12-10T18:02:06+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1254&amp;p=4717#p4717</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1254&amp;p=4717#p4717"/>
<title type="html"><![CDATA[Re: Errors Loading OpenPGP Applet on Ubuntu 13.10]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1254&amp;p=4717#p4717"><![CDATA[
So after playing with it some more (and getting some help from a collaborator), I was able to make gpshell work by appending 'LD_LIBRARY_PATH=/usr/local/lib' to the start of the 'gpshell' command like so:<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;-- 6F658408A000000003000000A5599F6501FF9F6E06479112103800734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012A026E01029000<br />open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f<br />Command --&gt; 80CA006600<br />Wrapped command --&gt; 80CA006600<br />Response &lt;-- 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012A026E01029000<br />Command --&gt; 8050000008528515188DD58C5200<br />Wrapped command --&gt; 8050000008528515188DD58C5200<br />Response &lt;-- 00003107002481967007FF020010686CE3CA2C2B4DD91BFB42E4187E9000<br />Command --&gt; 8482010010AEE8ABC511C364287196E36879C4E08E<br />Wrapped command --&gt; 8482010010AEE8ABC511C364287196E36879C4E08E<br />Response &lt;-- 9000<br />delete -AID D2760001240102000000000000010000<br />Command --&gt; 80E40080124F10D276000124010200000000000001000000<br />Wrapped command --&gt; 84E400801A4F10D2760001240102000000000000010000AB3727A37FA0727600<br />Response &lt;-- 6A88<br />delete() returns 0x80206A88 (6A88: Referenced data not found.)<br />delete -AID D27600012401<br />Command --&gt; 80E40080084F06D2760001240100<br />Wrapped command --&gt; 84E40080104F06D27600012401FA0DBB4862CD0D6600<br />Response &lt;-- 6A88<br />delete() returns 0x80206A88 (6A88: Referenced data not found.)<br />install -file ./applet/bin/openpgpcard/javacard/openpgpcard.cap -instParam 00 -priv 00<br />Command --&gt; 80E602001906D2760001240108A0000000030000000006EF04C60228300000<br />Wrapped command --&gt; 84E602002106D2760001240108A0000000030000000006EF04C602283000EC677C02F02A9E8300<br />Response &lt;-- 009000<br />...<br />Command --&gt; 80E60C003006D2760001240110D276000124010200000000000001000010D2760001240102000000000000010000010003C901000000<br />Wrapped command --&gt; 84E60C003806D2760001240110D276000124010200000000000001000010D2760001240102000000000000010000010003C9010000F1382EDA79847F3C00<br />Response &lt;-- 009000<br />card_disconnect<br />release_context<br /></div><br /><br />Using ykneomgr, however, still leads to an error:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">$ LD_LIBRARY_PATH=/usr/local/lib ykneomgr -d --applet-install=./applet/bin/openpgpcard/javacard/openpgpcard.cap<br />Trying reader 0: Yubico Yubikey NEO OTP+CCID 00 00<br />atr length 20<br />atr: 3b fa 13 00 00 81 31 fe 15 59 75 62 69 6b 65 79 4e 45 4f a6 <br />atr: .  .  .  .  .  .  1  .  .  Y  u  b  i  k  e  y  N  E  O  .  <br />logicalChannel 0<br />specVersion 211<br />--&gt; 13: 00 a4 04 00 08 a0 00 00 05 27 20 01 01 <br />Command --&gt; 00A4040008A000000527200101<br />Wrapped command --&gt; 00A4040008A000000527200101<br />Response &lt;-- 030102018507820000009000<br />&lt;-- 12: 03 01 02 01 85 07 82 00 00 00 90 00 <br />versionMajor 3<br />versionMinor 1<br />versionBuild 2<br />pgmSeq 1<br />touchLevel 34055<br />mode 82<br />crTimeout 0<br />autoEjectTime 0<br />--&gt; 4: 00 01 10 00 <br />Command --&gt; 00011000<br />Wrapped command --&gt; 00011000<br />Response &lt;-- 0020171C9000<br />&lt;-- 6: 00 20 17 1c 90 00 <br />serialno 2103068<br />--&gt; 13: 00 a4 04 00 08 a0 00 00 00 03 00 00 00 <br />Command --&gt; 00A4040008A000000003000000<br />Wrapped command --&gt; 00A4040008A000000003000000<br />Response &lt;-- 6F658408A000000003000000A5599F6501FF9F6E06479112103800734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012A026E01029000<br />&lt;-- 105: 6f 65 84 08 a0 00 00 00 03 00 00 00 a5 59 9f 65 01 ff 9f 6e 06 47 91 12 10 38 00 73 4a 06 07 2a 86 48 86 fc 6b 01 60 0c 06 0a 2a 86 48 86 fc 6b 02 02 01 01 63 09 06 07 2a 86 48 86 fc 6b 03 64 0b 06 09 2a 86 48 86 fc 6b 04 02 55 65 0b 06 09 2b 85 10 86 48 64 02 01 03 66 0c 06 0a 2b 06 01 04 01 2a 02 6e 01 02 90 00 <br />Command --&gt; 805000000829DFE5AA1C41DA2100<br />Wrapped command --&gt; 805000000829DFE5AA1C41DA2100<br />Response &lt;-- 00003107002481967007FF02001356DB39257EA5C380BEA0D0D4E2D89000<br />Command --&gt; 8482030010B2B8561E7831E7A7F61018F4EAF3F650<br />Wrapped command --&gt; 8482030010B2B8561E7831E7A7F61018F4EAF3F650<br />Response &lt;-- 9000<br />Command --&gt; 80E602001906D2760001240108A0000000030000000006EF04C60228300000<br />Wrapped command --&gt; 84E6020028F99CB873BC25BBE8BF7D0D3D735ABB52E7B9D1083109C5E491864FB88192526D1C2B15335582603A00<br />Response &lt;-- 6985<br />install_for_load() returns 0x80206985 (6985: Command not allowed - Conditions of use not satisfied.)<br />error: ykneomgr_applet_install (-4): Backend error<br /></div><br /><br />But I now seem (pending verification) to have the latest version of the OpenPGP applet installed via gpshell, so progress! If anyone has any insight into the ykneomgr issue, I'm open to troubleshooting it as well.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2733">asayler</a> — Tue Dec 10, 2013 6:02 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[asayler]]></name></author>
<updated>2013-12-09T07:09:08+01:00</updated>
<published>2013-12-09T07:09:08+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1254&amp;p=4709#p4709</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1254&amp;p=4709#p4709"/>
<title type="html"><![CDATA[Errors Loading OpenPGP Applet on Ubuntu 13.10]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1254&amp;p=4709#p4709"><![CDATA[
I'm playing around with a new Yubikey Neo. I've been trying to load the latest version of the OpenPGP applet (<!-- m --><a class="postlink" href="https://github.com/Yubico/ykneo-openpgp">https://github.com/Yubico/ykneo-openpgp</a><!-- m -->), but am encountering issues.<br /><br />I've followed the directions on both the applet github page and on the &quot;How to install an applet&quot; forum thread (<!-- l --><a class="postlink-local" href="http://forum.yubico.com/viewtopic.php?f=26&amp;t=1159">viewtopic.php?f=26&amp;t=1159</a><!-- l -->). I have globalplatform-6.0.0, gppcscconnectionplugin-1.1.0, gpshell-1.4.4, and libykneomgr (<!-- m --><a class="postlink" href="https://github.com/Yubico/libykneomgr">https://github.com/Yubico/libykneomgr</a><!-- m -->) all built from source and installed to /usr/local/:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">$ ls -al /usr/local/bin/<br />drwxr-xr-x 1 root root   100 Dec  8 21:05 .<br />drwxr-xr-x 1 root root    96 Sep 24 21:43 ..<br />...<br />-rwxr-xr-x 1 root root 97380 Oct 24 21:08 gpshell<br />-rwxr-xr-x 1 root root 55689 Dec  8 21:05 ykneomgr<br />...<br /></div><br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">$ ls -al /usr/local/lib/<br />drwxr-xr-x 1 root root     734 Dec  8 21:05 .<br />drwxr-xr-x 1 root root      96 Sep 24 21:43 ..<br />...<br />-rw-r--r-- 1 root root  851226 Oct 24 21:05 libglobalplatform.a<br />-rwxr-xr-x 1 root root    1042 Oct 24 21:05 libglobalplatform.la<br />lrwxrwxrwx 1 root root      26 Oct 24 21:05 libglobalplatform.so -&gt; libglobalplatform.so.6.0.0<br />lrwxrwxrwx 1 root root      26 Oct 24 21:05 libglobalplatform.so.6 -&gt; libglobalplatform.so.6.0.0<br />-rwxr-xr-x 1 root root  559391 Oct 24 21:05 libglobalplatform.so.6.0.0<br />-rw-r--r-- 1 root root   49054 Oct 24 21:07 libgppcscconnectionplugin.a<br />-rwxr-xr-x 1 root root    1151 Oct 24 21:07 libgppcscconnectionplugin.la<br />lrwxrwxrwx 1 root root      34 Oct 24 21:07 libgppcscconnectionplugin.so -&gt; libgppcscconnectionplugin.so.1.0.1<br />lrwxrwxrwx 1 root root      34 Oct 24 21:07 libgppcscconnectionplugin.so.1 -&gt; libgppcscconnectionplugin.so.1.0.1<br />-rwxr-xr-x 1 root root   41346 Oct 24 21:07 libgppcscconnectionplugin.so.1.0.1<br />-rw-r--r-- 1 root root  156384 Dec  8 21:05 libykneomgr.a<br />-rwxr-xr-x 1 root root    1051 Dec  8 21:05 libykneomgr.la<br />lrwxrwxrwx 1 root root      20 Dec  8 21:05 libykneomgr.so -&gt; libykneomgr.so.0.0.2<br />lrwxrwxrwx 1 root root      20 Dec  8 21:05 libykneomgr.so.0 -&gt; libykneomgr.so.0.0.2<br />-rwxr-xr-x 1 root root   84166 Dec  8 21:05 libykneomgr.so.0.0.2<br />drwxr-xr-x 1 root root      56 Dec  8 21:05 pkgconfig<br />...<br /></div><br /><br />My YubiKey Neo is connected, communicating with the ykneomgr utility, and set to the proper mode:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">$ ykneomgr -m<br />82<br />$ ykneomgr -w<br />3.1.2<br />$ ykneomgr -l<br />0: Yubico Yubikey NEO OTP+CCID 00 00<br />$ ykneomgr -a<br />0: a0000000035350<br />1: a0000005272001<br />2: d27600012401<br />$ lsusb<br />...<br />Bus 001 Device 032: ID 1050:0111 Yubico.com <br />...<br /></div><br /><br />I have also white-listed the device in the pcscd config as described at <!-- l --><a class="postlink-local" href="http://forum.yubico.com/viewtopic.php?f=26&amp;t=982&amp;start=10">viewtopic.php?f=26&amp;t=982&amp;start=10</a><!-- l --> (although it appears that this may no longer be necessary).<br /><br />When I try to use the ykneomgr utility to install the latest OpenPGP cap file (1.0.5), I get the following error (debug enabled):<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">$ ykneomgr -d --applet-install=./applet/bin/openpgpcard/javacard/openpgpcard.cap<br />Trying reader 0: Yubico Yubikey NEO OTP+CCID 00 00<br />atr length 20<br />atr: 3b fa 13 00 00 81 31 fe 15 59 75 62 69 6b 65 79 4e 45 4f a6 <br />atr: .  .  .  .  .  .  1  .  .  Y  u  b  i  k  e  y  N  E  O  .  <br />logicalChannel 0<br />specVersion 211<br />--&gt; 13: 00 a4 04 00 08 a0 00 00 05 27 20 01 01 <br />Command --&gt; 00A4040008A000000527200101<br />Wrapped command --&gt; 00A4040008A000000527200101<br />Response &lt;-- 030102018507820000009000<br />&lt;-- 12: 03 01 02 01 85 07 82 00 00 00 90 00 <br />versionMajor 3<br />versionMinor 1<br />versionBuild 2<br />pgmSeq 1<br />touchLevel 34055<br />mode 82<br />crTimeout 0<br />autoEjectTime 0<br />--&gt; 4: 00 01 10 00 <br />Command --&gt; 00011000<br />Wrapped command --&gt; 00011000<br />Response &lt;-- 0020171C9000<br />&lt;-- 6: 00 20 17 1c 90 00 <br />serialno 2103068<br />--&gt; 13: 00 a4 04 00 08 a0 00 00 00 03 00 00 00 <br />Command --&gt; 00A4040008A000000003000000<br />Wrapped command --&gt; 00A4040008A000000003000000<br />Response &lt;-- 6F658408A000000003000000A5599F6501FF9F6E06479112103800734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864886FC6B03640B06092A864886FC6B040255650B06092B8510864864020103660C060A2B060104012A026E01029000<br />&lt;-- 105: 6f 65 84 08 a0 00 00 00 03 00 00 00 a5 59 9f 65 01 ff 9f 6e 06 47 91 12 10 38 00 73 4a 06 07 2a 86 48 86 fc 6b 01 60 0c 06 0a 2a 86 48 86 fc 6b 02 02 01 01 63 09 06 07 2a 86 48 86 fc 6b 03 64 0b 06 09 2a 86 48 86 fc 6b 04 02 55 65 0b 06 09 2b 85 10 86 48 64 02 01 03 66 0c 06 0a 2b 06 01 04 01 2a 02 6e 01 02 90 00 <br />Command --&gt; 8050000008006AEF403A50057300<br />Wrapped command --&gt; 8050000008006AEF403A50057300<br />Response &lt;-- 00003107002481967007FF02000E2A73D2AF62FF5EF835091943D1CC9000<br />Command --&gt; 8482030010A1FDBED655CFA31C90C44237A68938A8<br />Wrapped command --&gt; 8482030010A1FDBED655CFA31C90C44237A68938A8<br />Response &lt;-- 9000<br />read_executable_load_file_parameters() returns 0x00000002 (No such file or directory)<br />error: ykneomgr_applet_install (-4): Backend error<br /></div><br /><br />When I try the same operation using the gpshell utility, I also get an error:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">$ gpshell gpinstall.txt<br />mode_211<br />enable_trace<br />establish_context<br />establish_context failed with error 0xFFFFFFFFFFFFFFFF (libgppcscconnectionplugin.so.1.0.1: cannot open shared object file: No such file or directory)<br /></div><br /><br />As you can see from the commands at the top of this post, libgppcscconnectionplugin.so.1.0.1 is installed in /usr/local/lib:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">$ ls -al /usr/local/lib/libgppcscconnectionplugin.so.1.0.1<br />-rwxr-xr-x 1 root root 41346 Oct 24 21:07 /usr/local/lib/libgppcscconnectionplugin.so.1.0.1<br /></div><br /><br />I have run ldconfig and the libraries are up to date.<br /><br />I have tried both commands as my regular user and as root via sudo. The results are the same either way. I have also tried both the official OpenPGP 1.0.5 release as well as building the latest source in the master branch from GitHub repo. Again, the results are the same both times.<br /><br />Any thoughts? I'd love to get the new cap file installed, but it's being... temperamental.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2733">asayler</a> — Mon Dec 09, 2013 7:09 am</p><hr />
]]></content>
</entry>
</feed>