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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2017-03-22T18:01:31+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=35&amp;t=2608</id>
<entry>
<author><name><![CDATA[ChrisHalos]]></name></author>
<updated>2017-03-22T18:01:31+01:00</updated>
<published>2017-03-22T18:01:31+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2608&amp;p=9490#p9490</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2608&amp;p=9490#p9490"/>
<title type="html"><![CDATA[Re: [QUESTION] - How to resolve gpg: card is permanently loc]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2608&amp;p=9490#p9490"><![CDATA[
Covered on our website:<br /><br /><!-- m --><a class="postlink" href="http://www.homedepot.com/p/Suncast-Tremont-7-ft-1-3-4-in-x-8-ft-4-1-2-in-Resin-Storage-Shed-BMS8700/204725195">http://www.homedepot.com/p/Suncast-Trem ... /204725195</a><!-- m --><br /><br />Our developers website:<br /><br /><!-- m --><a class="postlink" href="https://developers.yubico.com/ykneo-openpgp/ResetApplet.html">https://developers.yubico.com/ykneo-ope ... pplet.html</a><!-- m --><br /><br />On the forum:<br /><br /><!-- l --><a class="postlink-local" href="https://forum.yubico.com/viewtopic.php?f=26&amp;t=2182">viewtopic.php?f=26&amp;t=2182</a><!-- l --><br /><!-- l --><a class="postlink-local" href="https://forum.yubico.com/viewtopic.php?f=35&amp;t=2193">viewtopic.php?f=35&amp;t=2193</a><!-- l --><br /><br />Only difference in OpenPGP reset between YubiKey NEO and YubiKey 4 is the replies you get from PGP connect agent which confirm each PIN has been locked out successfully and the card has been terminated.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3140">ChrisHalos</a> — Wed Mar 22, 2017 6:01 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[MrD]]></name></author>
<updated>2017-03-22T15:37:50+01:00</updated>
<published>2017-03-22T15:37:50+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2608&amp;p=9489#p9489</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2608&amp;p=9489#p9489"/>
<title type="html"><![CDATA[[QUESTION] - How to resolve gpg: card is permanently locked!]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2608&amp;p=9489#p9489"><![CDATA[
I received a brand-new Yubikey 4 and wanted to copy an existing OpenPGP key onto it for testing purposes. During the process, I had several issues with russing gpg-agent and such, so I was unsure which password to enter at which time. I worked according to <a href="https://www.yubico.com/support/knowledge-base/categories/articles/use-yubikey-openpgp/" class="postlink">this</a> How To.<br /><br />However, I ended up with <span style="color: #FF0000">gpg: card is permanently locked!</span> as in:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">me@desktop ~ $ gpg --card-edit<br /><br />can't connect to `/home/me/.gnupg/S.gpg-agent': No such file or directory<br />Application ID ...: D276xxx<br />Version ..........: 2.1<br />Manufacturer .....: unknown<br />Serial number ....: 0xxxx<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 />Private DO 1 .....: &#91;not set&#93;<br />Private DO 2 .....: &#91;not set&#93;<br />Signature PIN ....: not forced<br />Key attributes ...: 2048R 2048R 2048R<br />Max. PIN lengths .: 127 127 127<br />PIN retry counter : 3 0 0<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; url<br />URL to retrieve public key: http://www....<br />gpg: card is permanently locked!<br />gpg: error setting URL: bad passphrase<br /></div><br /><br />I get a similar error message when trying to move a private key onto the Yubikey 4:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg&gt; keytocard <br />Please select where to store the key:<br />   (2) Encryption key<br />Your selection? 2<br />gpg: KEYTOCARD failed: Bad secret key</div><br /><br />I found some explanations on how to reset the NEO, but I don't think that the mentioned reset mechanisms work with the Yubikey 4 as well.<br /><br />How can I resolve this issue?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4746">MrD</a> — Wed Mar 22, 2017 3:37 pm</p><hr />
]]></content>
</entry>
</feed>