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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2015-09-23T21:37:28+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=26&amp;t=2042</id>
<entry>
<author><name><![CDATA[TiiXel]]></name></author>
<updated>2015-09-23T21:36:19+01:00</updated>
<published>2015-09-23T21:36:19+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2042&amp;p=7831#p7831</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2042&amp;p=7831#p7831"/>
<title type="html"><![CDATA[Re: Importing GPG private key to NEO :]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2042&amp;p=7831#p7831"><![CDATA[
Ok, problem solved ! Of course I googled again after posting and I found similar error, leading me to solution.<br /><br />If anyone needs this, this is what I had to do :<br /><br />Acording to <a href="https://bugs.gnupg.org/gnupg/issue1121" class="postlink">this bug report</a> the problem is due to incompatibility between the gpg-agent being used, and the gpg2 version.<br /><br />I did not update my gpg-agent as it was already up to date, but, I changed the way it's run when my session starts : I switched from <a href="http://www.incenp.org/notes/2014/gnupg-for-ssh-authentication.html" class="postlink">this configuration</a> to <a href="http://www.incenp.org/notes/2015/gnupg-for-ssh-authentication.html" class="postlink">this one</a>. The former was, indeed, meant for an older version.<br /><br />This is how I solved !<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3936">TiiXel</a> — Wed Sep 23, 2015 9:36 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[TiiXel]]></name></author>
<updated>2015-09-23T21:37:28+01:00</updated>
<published>2015-09-23T20:55:47+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2042&amp;p=7830#p7830</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2042&amp;p=7830#p7830"/>
<title type="html"><![CDATA[[SOLVED] Importing GPG private key to NEO : IPC Command]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2042&amp;p=7830#p7830"><![CDATA[
Hello everyone,<br /><br />I just got my Yubikey NEO and I want to use it as a GPG smartcard. My GPG private key is already generated, when I want to import it, I get an error (Translated from French) :<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg: KEYTOCARD failed : Unknown IPC command</div><br />My system is Ubuntu 15.04, GnuPG 2.1.6<br />I'm using standard procedure, as intructed <a href="https://developers.yubico.com/PGP/Importing_keys.html" class="postlink">here</a>. I guess it may be usefull to tell you that the first command does return what is expected and that I've change my key to mode 82 :<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">&gt;&gt;&gt; ykpersonalize -m82<br />Firmware version 3.4.3 Touch level 1551 Program sequence 3<br /><br />The USB mode will be set to: 0x82<br /><br />Commit? (y/n) &#91;n&#93;: y<br /><br />&gt;&gt;&gt; gpg-connect-agent --hex &quot;scd apdu 00 f1 00 00&quot; /bye<br /> D&#91;0000&#93;  01 00 10 90 00                                     .....<br /> OK</div><br />Here is what I get from gpg2  :<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">&gt;&gt;&gt; gpg2 --version <br />gpg (GnuPG) 2.1.6<br />libgcrypt 1.6.3<br />Copyright (C) 2015 Free Software Foundation, Inc.<br />License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;<br />This is free software: you are free to change and redistribute it.<br />There is NO WARRANTY, to the extent permitted by law.<br /><br />Home: ~/.gnupg<br />Algorithmes pris en charge :<br />Clef publique : RSA, ELG, DSA, ECDH, ECDSA, EDDSA<br />Chiffrement : IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256,<br />              TWOFISH, CAMELLIA128, CAMELLIA192, CAMELLIA256<br />Hachage : SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224<br />Compression : Non compressé<br /><br />&gt;&gt;&gt; gpg2 --edit-key F646F813 <br />gpg (GnuPG) 2.1.6; Copyright (C) 2015 Free Software Foundation, Inc.<br />This is free software: you are free to change and redistribute it.<br />There is NO WARRANTY, to the extent permitted by law.<br /><br />La clef secrète est disponible.<br /><br />pub  rsa4096/F646F813<br />     créé : 2015-06-07  expire : 2018-06-06  utilisation : C   <br />     confiance : ultime        validité : ultime<br />sub  rsa2048/8CDA097E<br />     créé : 2015-06-07  expire : 2018-06-06  utilisation : S   <br />sub  rsa2048/77A93788<br />     créé : 2015-06-07  expire : 2018-06-06  utilisation : E   <br />sub  rsa2048/8E427FB0<br />     créé : 2015-06-07  expire : 2018-06-06  utilisation : A   <br />&#91;  ultime &#93; (1). XXXXXX &lt;XXXX@XXXX.XXX&gt;<br /><br />gpg&gt; toggle<br />           <br />pub  rsa4096/F646F813<br />     créé : 2015-06-07  expire : 2018-06-06  utilisation : C   <br />     confiance : ultime        validité : ultime<br />sub  rsa2048/8CDA097E<br />     créé : 2015-06-07  expire : 2018-06-06  utilisation : S   <br />sub  rsa2048/77A93788<br />     créé : 2015-06-07  expire : 2018-06-06  utilisation : E   <br />sub  rsa2048/8E427FB0<br />     créé : 2015-06-07  expire : 2018-06-06  utilisation : A   <br />&#91;  ultime &#93; (1). XXXXXX &lt;XXXX@XXXX.XXX&gt;<br /><br />gpg&gt; key 1<br />          <br />pub  rsa4096/F646F813<br />     créé : 2015-06-07  expire : 2018-06-06  utilisation : C   <br />     confiance : ultime        validité : ultime<br />sub* rsa2048/8CDA097E<br />     créé : 2015-06-07  expire : 2018-06-06  utilisation : S   <br />sub  rsa2048/77A93788<br />     créé : 2015-06-07  expire : 2018-06-06  utilisation : E   <br />sub  rsa2048/8E427FB0<br />     créé : 2015-06-07  expire : 2018-06-06  utilisation : A   <br />&#91;  ultime &#93; (1). XXXXXX &lt;XXXX@XXXX.XXX&gt;<br /><br />gpg&gt; keytocard   <br />Veuillez sélectionner l'endroit où stocker la clef :<br />   (1) Clef de signature<br />   (3) Clef d'authentification<br />Quel est votre choix ? 1<br />gpg: échec de KEYTOCARD : Commande IPC inconnue<br /></div><br />I don't know what this IPC Command mean, nor where it comes from. I'm not sure it's a Yubikey failure, this may be related to GnuPG, or my system...<br /><br />Thank you a lot for helping me !<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3936">TiiXel</a> — Wed Sep 23, 2015 8:55 pm</p><hr />
]]></content>
</entry>
</feed>