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

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

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=26&amp;t=2242</id>
<entry>
<author><name><![CDATA[bluszcz]]></name></author>
<updated>2016-03-07T17:19:10+01:00</updated>
<published>2016-03-07T17:19:10+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8449#p8449</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8449#p8449"/>
<title type="html"><![CDATA[Re: [Solved] Cannot configure Yubikey NEO with OpenPGP]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8449#p8449"><![CDATA[
Hi Alessio, <br /><br />problem has bee solved! Thank you. <br /><br /><div class="quotetitle">Alessio wrote:</div><div class="quotecontent"><br />The commands you're interested in are the one in the &quot;Reset the applet&quot; section.<br /><br />If you get a card not present error make sure that you don't have other processes taking exclusive access to the card. One quick way to make sure of that is to re-plug your YubiKey and run the commands as root (if everything is configured correctly there shouldn't be any need for that tho).<br /><br />Also, gpshell is irrelevant in this case. You won't be able to make changes to the applications present in the YubiKey.<br /></div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4229">bluszcz</a> — Mon Mar 07, 2016 5:19 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Alessio]]></name></author>
<updated>2016-03-07T15:36:18+01:00</updated>
<published>2016-03-07T15:36:18+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8447#p8447</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8447#p8447"/>
<title type="html"><![CDATA[Re: [Problem] Cannot configure Yubikey NEO with OpenPGP]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8447#p8447"><![CDATA[
The commands you're interested in are the one in the &quot;Reset the applet&quot; section.<br /><br />If you get a card not present error make sure that you don't have other processes taking exclusive access to the card. One quick way to make sure of that is to re-plug your YubiKey and run the commands as root (if everything is configured correctly there shouldn't be any need for that tho).<br /><br />Also, gpshell is irrelevant in this case. You won't be able to make changes to the applications present in the YubiKey.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3428">Alessio</a> — Mon Mar 07, 2016 3:36 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[bluszcz]]></name></author>
<updated>2016-03-07T15:27:29+01:00</updated>
<published>2016-03-07T15:27:29+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8446#p8446</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8446#p8446"/>
<title type="html"><![CDATA[Re: [Problem] Cannot configure Yubikey NEO with OpenPGP]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8446#p8446"><![CDATA[
Hi Alessio,<br /><br />I am getting following:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">15:28 $ gpg-connect-agent --hex &quot;scd apdu 00 f1 00 00&quot; /bye<br />ERR 100663406 Card removed &lt;SCD&gt;<br />(oppnet) ✔ ~/Yubico <br /></div><br /><br />and<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">15:25 $ /home/bluszcz/opt/gpshell/bin/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; 80500000087C9CBDC3AFA4466900<br />Wrapped command --&gt; 80500000087C9CBDC3AFA4466900<br />Response &lt;-- 000043190125289328120202000228899B7335585A8B54A2A69533169000<br />mutual_authentication() returns 0x80302000 (The verification of the card cryptogram failed.)<br /></div><br /><br /><div class="quotetitle">Alessio wrote:</div><div class="quotecontent"><br />That means that you have locked out your Admin PIN. The only way to recover is by resetting the PGP application.<br /><br />Follow the instructions at this link <!-- m --><a class="postlink" href="https://developers.yubico.com/ykneo-openpgp/ResetApplet.html">https://developers.yubico.com/ykneo-ope ... pplet.html</a><!-- m --><br /></div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4229">bluszcz</a> — Mon Mar 07, 2016 3:27 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Alessio]]></name></author>
<updated>2016-03-07T15:07:11+01:00</updated>
<published>2016-03-07T15:07:11+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8445#p8445</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8445#p8445"/>
<title type="html"><![CDATA[Re: [Problem] Cannot configure Yubikey NEO with OpenPGP]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8445#p8445"><![CDATA[
That means that you have locked out your Admin PIN. The only way to recover is by resetting the PGP application.<br /><br />Follow the instructions at this link <!-- m --><a class="postlink" href="https://developers.yubico.com/ykneo-openpgp/ResetApplet.html">https://developers.yubico.com/ykneo-ope ... pplet.html</a><!-- m --><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3428">Alessio</a> — Mon Mar 07, 2016 3:07 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[bluszcz]]></name></author>
<updated>2016-03-07T14:37:23+01:00</updated>
<published>2016-03-07T14:37:23+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8444#p8444</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8444#p8444"/>
<title type="html"><![CDATA[Re: [Problem] Cannot configure Yubikey NEO with OpenPGP]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8444#p8444"><![CDATA[
Hi Alessio,<br /><br />I think it could help, however something happened and my computer hang.<br /><br />After restart I had this:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">PIN retry counter : 3 3 0</div><br /><br />What is the best way to restart the counter? Link please?<br /><br /><div class="quotetitle">Alessio wrote:</div><div class="quotecontent"><br />From what I can see from the log files, you're trying to set ad Admin PIN of 4 characters. This is not a legal Admin PIN.<br /><br />The specifications require the following PIN lengths:<br />User PIN: at least 6 characters<br />Admin PIN: at least 8 characters<br /><br />What happens if you try a legal PIN?<br /></div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4229">bluszcz</a> — Mon Mar 07, 2016 2:37 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Alessio]]></name></author>
<updated>2016-03-07T10:03:23+01:00</updated>
<published>2016-03-07T10:03:23+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8441#p8441</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8441#p8441"/>
<title type="html"><![CDATA[Re: [Problem] Cannot configure Yubikey NEO with OpenPGP]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8441#p8441"><![CDATA[
From what I can see from the log files, you're trying to set ad Admin PIN of 4 characters. This is not a legal Admin PIN.<br /><br />The specifications require the following PIN lengths:<br />User PIN: at least 6 characters<br />Admin PIN: at least 8 characters<br /><br />What happens if you try a legal PIN?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3428">Alessio</a> — Mon Mar 07, 2016 10:03 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[bluszcz]]></name></author>
<updated>2016-03-06T20:51:22+01:00</updated>
<published>2016-03-06T20:51:22+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8440#p8440</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8440#p8440"/>
<title type="html"><![CDATA[Re: [Problem] Cannot configure Yubikey NEO with OpenPGP]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8440#p8440"><![CDATA[
Hi Alessio,<br /><br />thank you for answering.<br /><br />I am getting pin asking window for password, and after entering password it crashes.<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">2016-03-06 19:19:54 scdaemon&#91;31658&#93; DBG: check_pcsc_pinpad: command=24, r=27265<br />2016-03-06 19:19:54 scdaemon&#91;31658&#93; DBG: send apdu: c=00 i=CA p1=00 p2=C4 lc=-1 le=256 em=0<br />2016-03-06 19:19:54 scdaemon&#91;31658&#93; DBG:   PCSC_data: 00 CA 00 C4 00<br />2016-03-06 19:19:54 scdaemon&#91;31658&#93; DBG:  response: sw=9000  datalen=7<br />2016-03-06 19:19:54 scdaemon&#91;31658&#93; DBG:       dump:  00 7F 7F 7F 03 03 03<br />2016-03-06 19:19:54 scdaemon&#91;31658&#93; 3 Admin PIN attempts remaining before card is permanently locked<br />2016-03-06 19:19:54 scdaemon&#91;31658&#93; DBG: asking for PIN '|A|Please enter the Admin PIN'<br />scdaemon&#91;31658&#93;: chan_7 -&gt; INQUIRE NEEDPIN |A|Please enter the Admin PIN<br />scdaemon&#91;31658&#93;: chan_7 &lt;- &#91; 44 20 31 32 33 34 35 36 37 38 00 00 00 00 00 00 ...(76 byte(s) skipped) &#93;<br />scdaemon&#91;31658&#93;: chan_7 &lt;- END<br />2016-03-06 19:19:57 scdaemon&#91;31658&#93; DBG: asking for PIN '|AN|New Admin PIN'<br />scdaemon&#91;31658&#93;: chan_7 -&gt; INQUIRE NEEDPIN |AN|New Admin PIN<br />scdaemon&#91;31658&#93;: chan_7 &lt;- &#91; 44 20 31 32 33 34 00 00 00 00 00 00 00 00 00 00 ...(76 byte(s) skipped) &#93;<br />scdaemon&#91;31658&#93;: chan_7 &lt;- END<br />2016-03-06 19:20:00 scdaemon&#91;31658&#93; DBG: send apdu: c=00 i=24 p1=00 p2=83 lc=12 le=-1 em=0<br />2016-03-06 19:20:00 scdaemon&#91;31658&#93; DBG:   PCSC_data: 00 24 00 83 0C 31 32 33 34 35 36 37 38 31 32 33 34<br />2016-03-06 19:20:00 scdaemon&#91;31658&#93; DBG:  response: sw=6985  datalen=0<br />2016-03-06 19:20:00 scdaemon&#91;31658&#93; operation change_pin result: Conditions of use not satisfied<br />2016-03-06 19:20:00 scdaemon&#91;31658&#93; command passwd failed: Conditions of use not satisfied<br />scdaemon&#91;31658&#93;: chan_7 -&gt; ERR 100663427 Conditions of use not satisfied &lt;SCD&gt;<br />2016-03-06 19:23:53 scdaemon&#91;31658&#93; pcsc_status failed: unknown reader (0x80100009)<br />2016-03-06 19:23:53 scdaemon&#91;31658&#93; updating slot 0 status: 0x0007-&gt;0x0000 (1-&gt;1)<br />2016-03-06 19:23:53 scdaemon&#91;31658&#93; sending signal 12 to client 30369<br /></div><br /><br /><div class="quotetitle">Alessio wrote:</div><div class="quotecontent"><br />Hey,<br /><br />as a first step I would start adding some logging output to scdaemon.<br /><br />Add the following two lines to ~/.gnupg/scdaemon.conf (create the file if it doesn't exist):<br />log-file /tmp/scdaemon.log<br />debug-level guru<br /><br />After restarting scdaemon you will start seeing messages in /tmp/scdaemon.log some of these messages might help to trace down the problem (<em>just be aware the this is the highest logging level and also logs PIN insertions</em>).<br /><br />Given what you're trying to do, what should normally happen next is that a program called pinentry is invoked. As the name implies this is a tool designed to input PINs in a safe way. However there are different versions available and each one uses a different way of reading the input (such as gtk2, curses, tty). One possibility is that the right one is missing from your system and/or the wrong one is invoked. Something like this should show up in the log files.<br /></div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4229">bluszcz</a> — Sun Mar 06, 2016 8:51 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Alessio]]></name></author>
<updated>2016-03-02T17:36:38+01:00</updated>
<published>2016-03-02T17:36:38+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8424#p8424</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8424#p8424"/>
<title type="html"><![CDATA[Re: [Problem] Cannot configure Yubikey NEO with OpenPGP]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8424#p8424"><![CDATA[
Hey,<br /><br />as a first step I would start adding some logging output to scdaemon.<br /><br />Add the following two lines to ~/.gnupg/scdaemon.conf (create the file if it doesn't exist):<br />log-file /tmp/scdaemon.log<br />debug-level guru<br /><br />After restarting scdaemon you will start seeing messages in /tmp/scdaemon.log some of these messages might help to trace down the problem (<em>just be aware the this is the highest logging level and also logs PIN insertions</em>).<br /><br />Given what you're trying to do, what should normally happen next is that a program called pinentry is invoked. As the name implies this is a tool designed to input PINs in a safe way. However there are different versions available and each one uses a different way of reading the input (such as gtk2, curses, tty). One possibility is that the right one is missing from your system and/or the wrong one is invoked. Something like this should show up in the log files.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3428">Alessio</a> — Wed Mar 02, 2016 5:36 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[bluszcz]]></name></author>
<updated>2016-03-01T13:15:22+01:00</updated>
<published>2016-03-01T13:15:22+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8421#p8421</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8421#p8421"/>
<title type="html"><![CDATA[[Problem] Cannot configure Yubikey NEO with OpenPGP]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2242&amp;p=8421#p8421"><![CDATA[
Hello,<br /><br />I am trying to configure a key using tutorial: <!-- m --><a class="postlink" href="https://www.yubico.com/2012/12/yubikey-neo-openpgp/">https://www.yubico.com/2012/12/yubikey-neo-openpgp/</a><!-- m --> but unfortunately it seems my device is somehow locked (and PIN counter is 3 3 3 - so I am not sure if installing new applet is a solution).<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">13:11 $ gpg --card-edit <br /><br />Application ID ...: D276xxxxxxxxxxxxxxxxxxxx30000<br />Version ..........: 2.0<br />Manufacturer .....: unknown<br />Serial number ....: 0xxxxxxx<br />Name of cardholder: &#91;not set&#93;<br />Language prefs ...: &#91;not set&#93;<br />Sex ..............: unspecified<br />URL of public key : &#91;not set&#93;<br />Login data .......: &#91;not set&#93;<br />Signature PIN ....: forced<br />Key attributes ...: 2048R 2048R 2048R<br />Max. PIN lengths .: 127 127 127<br />PIN retry counter : 1 3 3<br />Signature counter : 0<br />Signature key ....: &#91;none&#93;<br />Encryption key....: &#91;none&#93;<br />Authentication key: &#91;none&#93;<br />General key info..: &#91;none&#93;<br /><br />gpg/card&gt; admin<br />Admin commands are allowed<br /><br />gpg/card&gt; passwd<br />gpg: OpenPGP card no. D2760001240102000006045288830000 detected<br /><br />1 - change PIN<br />2 - unblock PIN<br />3 - change Admin PIN<br />4 - set the Reset Code<br />Q - quit<br /><br />Your selection? 1<br />gpg: sending command `SCD PASSWD' to agent failed: ec=6.131<br />Error changing the PIN: general error<br /></div><br /><br />Same happens when I try to generate the keys or change the admin password. What I should do?<br /><br />I am using Ubuntu Trusty 14.04.<br /><br />Not sure if this does matter, but:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">13:28 $ pcsc_scan<br />PC/SC device scanner<br />V 1.4.22 (c) 2001-2011, Ludovic Rousseau &lt;ludovic.rousseau@free.fr&gt;<br />Compiled with PC/SC lite version: 1.8.10<br />Using reader plug'n play mechanism<br />Scanning present readers...<br />0: Yubico Yubikey NEO OTP+CCID 00 00<br /><br />Tue Mar  1 13:28:20 2016<br />Reader 0: Yubico Yubikey NEO OTP+CCID 00 00<br />  Card state: Card inserted, Exclusive Mode, <br />  ATR: 3B XX XX XX<br /><br /><br />+ TS = 3B --&gt; Direct Convention<br />+ T0 = FC, Y(1): 1111, K: 12 (historical bytes)<br />  TA(1) = 13 --&gt; Fi=372, Di=4, 93 cycles/ETU<br />    43010 bits/s at 4 MHz, fMax for Fi = 5 MHz =&gt; 53763 bits/s<br />  TB(1) = 00 --&gt; VPP is not electrically connected<br />  TC(1) = 00 --&gt; Extra guard time: 0<br />  TD(1) = 81 --&gt; Y(i+1) = 1000, Protocol T = 1 <br />-----<br />  TD(2) = 31 --&gt; Y(i+1) = 0011, Protocol T = 1 <br />-----<br />  TA(3) = FE --&gt; IFSC: 254<br />  TB(3) = 15 --&gt; Block Waiting Integer: 1 - Character Waiting Integer: 5<br />+ Historical bytes: 59 75 62 69 6B 65 79 4E 45 4F 72 33<br />  Category indicator byte: 59 (proprietary format)<br />+ TCK = E1 (correct checksum)<br /><br />Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):<br />        NONE<br /><br />find: `/home/bluszcz/.cache/smartcard_list.txt': No such file or directory<br />Your card is not present in the database.<br />Please submit your unknown card at:<br />http://smartcard-atr.appspot.com/parse?ATR=</div><br /><br />Edit: After updating pcsc-tools from the ubuntu xenial package I am getting following:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">Tue Mar  1 14:53:31 2016<br />Reader 0: Yubico Yubikey NEO OTP+CCID 00 00<br />  Card state: Card removed, Exclusive Mode, <br />Scanning present readers...<br />Waiting for the first reader...found one<br />Scanning present readers...<br />0: Yubico Yubikey NEO OTP+CCID 00 00<br /><br />Tue Mar  1 14:53:35 2016<br />Reader 0: Yubico Yubikey NEO OTP+CCID 00 00<br />  Card state: Card inserted, <br />  ATR: 3B FC 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 4E 45 4F 72 33 E1<br /><br />ATR: 3B FC 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 4E 45 4F 72 33 E1<br />+ TS = 3B --&gt; Direct Convention<br />+ T0 = FC, Y(1): 1111, K: 12 (historical bytes)<br />  TA(1) = 13 --&gt; Fi=372, Di=4, 93 cycles/ETU<br />    43010 bits/s at 4 MHz, fMax for Fi = 5 MHz =&gt; 53763 bits/s<br />  TB(1) = 00 --&gt; VPP is not electrically connected<br />  TC(1) = 00 --&gt; Extra guard time: 0<br />  TD(1) = 81 --&gt; Y(i+1) = 1000, Protocol T = 1 <br />-----<br />  TD(2) = 31 --&gt; Y(i+1) = 0011, Protocol T = 1 <br />-----<br />  TA(3) = FE --&gt; IFSC: 254<br />  TB(3) = 15 --&gt; Block Waiting Integer: 1 - Character Waiting Integer: 5<br />+ Historical bytes: 59 75 62 69 6B 65 79 4E 45 4F 72 33<br />  Category indicator byte: 59 (proprietary format)<br />+ TCK = E1 (correct checksum)<br /><br />Possibly identified card (using /usr/share/pcsc/smartcard_list.txt):<br />3B FC 13 00 00 81 31 FE 15 59 75 62 69 6B 65 79 4E 45 4F 72 33 E1<br />        YubiKey NEO (PKI)<br />        http://www.yubico.com/<br /></div><br /><br />but still cannot make any operation on my NEO key.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4229">bluszcz</a> — Tue Mar 01, 2016 1:15 pm</p><hr />
]]></content>
</entry>
</feed>