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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2014-03-10T21:05:43+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=26&amp;t=1338</id>
<entry>
<author><name><![CDATA[viq]]></name></author>
<updated>2014-03-10T21:05:18+01:00</updated>
<published>2014-03-10T21:05:18+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1338&amp;p=5044#p5044</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1338&amp;p=5044#p5044"/>
<title type="html"><![CDATA[Re: [QUESTION] Problems importing gpg key into Yubikey Neo]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1338&amp;p=5044#p5044"><![CDATA[
OK, turns out that what I needed was to have pcscd daemon running, with that I was able to upload the new applet and import keys (didn't think to try uploading keys before I uploaded applet).<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1349">viq</a> — Mon Mar 10, 2014 9:05 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[viq]]></name></author>
<updated>2014-03-10T21:05:43+01:00</updated>
<published>2014-03-10T16:45:53+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1338&amp;p=5042#p5042</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1338&amp;p=5042#p5042"/>
<title type="html"><![CDATA[[SOLVED] Problems importing gpg key into Yubikey Neo]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1338&amp;p=5042#p5042"><![CDATA[
I am trying to upload to Neo my gpg keys, and encountering problems. I changed user and admin PINs, I tried generating keys on the card and that works well, but that's not what I want. I generated a 2048 bit RSA keys, it should be the proper set from what I read so far:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">pub  2048R/D7C09909  created: 2014-02-24  expires: 2014-03-31  usage: SC  <br />                     trust: ultimate      validity: ultimate<br />sub  2048R/CB5512C0  created: 2014-02-24  expires: 2014-03-31  usage: E   <br />sub  2048R/A18425B3  created: 2014-02-24  expires: 2014-03-31  usage: S   <br />sub  2048R/E094ED10  created: 2014-02-24  expires: 2014-03-31  usage: E   <br />sub  2048R/7FFE9E1E  created: 2014-02-28  expires: 2014-03-30  usage: A   <br /></div><br />Now I try to upload it to card:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">toggle<br />key 4<br />keytocard <br />scdaemon&#91;5524&#93;: updating slot 0 status: 0x0000-&gt;0x0007 (0-&gt;1)<br />The card does not support the import of keys<br /></div><br /><br />Fine, I may have too old version of the applet (it was bought in the christmas sale). Time to try and put a newer version of the applet on there.<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg --verify ykneo-openpgp-1.0.5.cap.sig <br />gpg: Signature made 2013-10-10T15:53:29 CEST using RSA key ID 105E722E<br />gpg: Good signature from &quot;Simon Josefsson &lt;simon@josefsson.org&gt;&quot;<br />gpg:                 aka &quot;Simon Josefsson &lt;simon@yubico.com&gt;&quot;<br /></div><br />and<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">$ cat gpinstall-test.txt <br />mode_211<br />enable_trace<br /><br />establish_context<br />card_connect<br />select -AID a000000003000000<br />open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f<br /><br />delete -AID D2760001240102000000000000010000<br />delete -AID D27600012401<br /><br />install -file /tmp/ykneo-openpgp-1.0.5.cap -instParam 00 -priv 00<br />card_disconnect<br />release_context<br /></div><br /><br />OK, time to put the applet on the card:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">$ gpshell ./gpinstall-test.txt <br />mode_211<br />enable_trace<br />establish_context<br />establish_context failed with error 0x8010001D (Service not available.)<br /></div><br /><br />...and I wasn't able to figure out what to do now. Key is in mode 82:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">$ lsusb | grep -i yubi<br />Bus 001 Device 008: ID 1050:0111 Yubico.com Yubikey NEO OTP+CCID<br /></div><br />and udev sets me as the owner of the device node. No idea what else to try...<br /><br />Additional info: computer is thinkpad x201, I don't believe it has any built in card reader, lspci and lsusb don't show anything that I would read as such. I tried it both under 64 bit archlinux and 32bit ubuntu 13.04 and 13.10, with same results.<br /><br />Any ideas what the problem is? Is it that the applet is too old for this functionality, or is there another issue? If it's too old, how do I convince the system to put a newer applet on the key?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1349">viq</a> — Mon Mar 10, 2014 4:45 pm</p><hr />
]]></content>
</entry>
</feed>