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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2016-09-27T18:34:55+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=26&amp;t=2147</id>
<entry>
<author><name><![CDATA[ChrisHalos]]></name></author>
<updated>2016-09-27T18:34:55+01:00</updated>
<published>2016-09-27T18:34:55+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2147&amp;p=9059#p9059</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2147&amp;p=9059#p9059"/>
<title type="html"><![CDATA[Re: YubiKey 4 and NEO - how to use RESET code?]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2147&amp;p=9059#p9059"><![CDATA[
<!-- m --><a class="postlink" href="https://github.com/Yubico/ykneo-openpgp/pull/43">https://github.com/Yubico/ykneo-openpgp/pull/43</a><!-- m --><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3140">ChrisHalos</a> — Tue Sep 27, 2016 6:34 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[SporkWitch]]></name></author>
<updated>2016-09-27T10:39:55+01:00</updated>
<published>2016-09-27T10:39:55+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2147&amp;p=9057#p9057</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2147&amp;p=9057#p9057"/>
<title type="html"><![CDATA[Re: YubiKey 4 and NEO - how to use RESET code?]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2147&amp;p=9057#p9057"><![CDATA[
<div class="quotetitle">ChrisHalos wrote:</div><div class="quotecontent"><br /><strong>Reset Code</strong> is set with:<br /><br /><em>gpg --card-edit<br />admin<br />passwd<br />4</em><br />[follow prompts from here - you just need to know the Admin PIN at this point, which is 12345678 if you haven't changed it from the default]<br /><br />For a description of the Reset Code, please see the specifications that the OpenPGP applet is based off of (<!-- m --><a class="postlink" href="http://www.g10code.com/docs/openpgp-card-2.0.pdf">http://www.g10code.com/docs/openpgp-card-2.0.pdf</a><!-- m -->), in particular page 15. The reset code (or &quot;resetting code&quot; as it's referred to in the documentation) is kind of like the Admin PIN, except the ONLY function it provides is to allow you to reset your PIN if you've locked it out. It can't be used for actually editing the card. It's intended for admins (who know the Admin PIN) to prepare the card for their user, and by providing both the PIN and the Reset Code, it gives the user control over the PIN (and the ability to reset it). If it's for personal / single-user use, the Reset Code isn't really necessary (and that's why there isn't one by default on the YubiKey).<br /><br />The NEO actually improperly reports that there is a Reset Code counter (look at the <strong>PIN retry counter</strong> field when you run <em>gpg --card-status</em> or <em>gpg --card-edit</em> - it's the middle number). The YubiKey 4 correctly reports this as - by default, as there is no Reset Code by default.<br /></div><br />Thanks for clarifying.  That said, a duress code might be something to look into in the future (it's a very practical function to have, and present on most high-end security devices, both military and civilian).<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4454">SporkWitch</a> — Tue Sep 27, 2016 10:39 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ChrisHalos]]></name></author>
<updated>2016-09-27T05:47:20+01:00</updated>
<published>2016-09-27T05:47:20+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2147&amp;p=9055#p9055</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2147&amp;p=9055#p9055"/>
<title type="html"><![CDATA[Re: YubiKey 4 and NEO - how to use RESET code?]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2147&amp;p=9055#p9055"><![CDATA[
<strong>Reset Code</strong> is set with:<br /><br /><em>gpg --card-edit<br />admin<br />passwd<br />4</em><br />[follow prompts from here - you just need to know the Admin PIN at this point, which is 12345678 if you haven't changed it from the default]<br /><br />For a description of the Reset Code, please see the specifications that the OpenPGP applet is based off of (<!-- m --><a class="postlink" href="http://www.g10code.com/docs/openpgp-card-2.0.pdf">http://www.g10code.com/docs/openpgp-card-2.0.pdf</a><!-- m -->), in particular page 15. The reset code (or &quot;resetting code&quot; as it's referred to in the documentation) is kind of like the Admin PIN, except the ONLY function it provides is to allow you to reset your PIN if you've locked it out. It can't be used for actually editing the card. It's intended for admins (who know the Admin PIN) to prepare the card for their user, and by providing both the PIN and the Reset Code, it gives the user control over the PIN (and the ability to reset it). If it's for personal / single-user use, the Reset Code isn't really necessary (and that's why there isn't one by default on the YubiKey).<br /><br />The NEO actually improperly reports that there is a Reset Code counter (look at the <strong>PIN retry counter</strong> field when you run <em>gpg --card-status</em> or <em>gpg --card-edit</em> - it's the middle number). The YubiKey 4 correctly reports this as - by default, as there is no Reset Code by default.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3140">ChrisHalos</a> — Tue Sep 27, 2016 5:47 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[SporkWitch]]></name></author>
<updated>2016-09-27T01:15:24+01:00</updated>
<published>2016-09-27T01:15:24+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2147&amp;p=9054#p9054</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2147&amp;p=9054#p9054"/>
<title type="html"><![CDATA[Re: YubiKey 4 and NEO - how to use RESET code?]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2147&amp;p=9054#p9054"><![CDATA[
<div class="quotetitle">mouse008 wrote:</div><div class="quotecontent"><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg --card-edit</div> has the option &quot;4 - set the Reset Code&quot;. It appears to work, at least both tokens (NEO and 4) accept this command and prompt me for the new Reset code.<br /><br />The question is - where/when/how can one use it? There doesn't seem to be any application that accepts it???<br /><br />Please explain how and at what circumstances that code can be used, and what its consequences are: does it just reset the PINs and PIN retry counters? Or does it wipe the entire applet content? Or...?<br /></div><br />I suspect it's a duress code, and will test later (came across your post while trying to find confirmation before testing practically).  That is, it's _not_ one you would ever be prompted for, its purpose is rather to _immediately_ wipe the contents upon entry.  Normally you have the configured number of PIN entry attempts before the card locks, followed by the configured number of PUK entry attempts to unlock and change the PIN.  If I'm right, the reset code would _immediately_ wipe the contents of card, rather than requiring all those attempts.  The idea is that if someone is holding a gun to your head, they can't torture the PIN out of you if you've already wiped it, and even if they have a lab capable of _trying_ to extract the keys, they wouldn't be there anymore to try.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4454">SporkWitch</a> — Tue Sep 27, 2016 1:15 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mouse008]]></name></author>
<updated>2016-01-04T04:41:21+01:00</updated>
<published>2016-01-04T04:41:21+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2147&amp;p=8110#p8110</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2147&amp;p=8110#p8110"/>
<title type="html"><![CDATA[YubiKey 4 and NEO - how to use RESET code?]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2147&amp;p=8110#p8110"><![CDATA[
<div class="codetitle"><b>Code:</b></div><div class="codecontent">gpg --card-edit</div> has the option &quot;4 - set the Reset Code&quot;. It appears to work, at least both tokens (NEO and 4) accept this command and prompt me for the new Reset code.<br /><br />The question is - where/when/how can one use it? There doesn't seem to be any application that accepts it???<br /><br />Please explain how and at what circumstances that code can be used, and what its consequences are: does it just reset the PINs and PIN retry counters? Or does it wipe the entire applet content? Or...?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4029">mouse008</a> — Mon Jan 04, 2016 4:41 am</p><hr />
]]></content>
</entry>
</feed>