<?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=3&amp;t=546" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2010-06-25T12:58:30+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=3&amp;t=546</id>
<entry>
<author><name><![CDATA[andries]]></name></author>
<updated>2010-06-25T12:58:30+01:00</updated>
<published>2010-06-25T12:58:30+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=546&amp;p=2262#p2262</id>
<link href="https://forum.yubico.com/viewtopic.php?t=546&amp;p=2262#p2262"/>
<title type="html"><![CDATA[ykvalidate --user andries &lt;One time password&gt; - OTP is INVAL]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=546&amp;p=2262#p2262"><![CDATA[
Hello All,<br />ykvalidate give a &quot;OTP is INVALID!&quot; message. <br />Last output is &quot;crc check: ok&quot;. <br />So maybe someone can give me a hint what I'm doing wrong.<br /><br />I use Ubuntu (lucid Lynx) and installed:<br />* <!-- m --><a class="postlink" href="http://packages.debian.org/sid/libykpers-1-1">http://packages.debian.org/sid/libykpers-1-1</a><!-- m --><br />* <!-- m --><a class="postlink" href="http://packages.debian.org/sid/yubikey-personalization">http://packages.debian.org/sid/yubikey-personalization</a><!-- m --><br /><br />The I installed yubipam from: <!-- m --><a class="postlink" href="http://www.securixlive.com/yubipam/download.php">http://www.securixlive.com/yubipam/download.php</a><!-- m --><br /><br />These steps I have taken:<br />1 - First I personalize my key<br />2 - Add my self to /etc/yubikey<br />3 - Test with ykvalidate<br />4 - Then I installed ykdebug<br /><br />################################<br /><strong>1 - First I personalize my key</strong><br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent"># sudo ykpersonalize -ab4a4fd73c640312c01a2db2a237b33fb  -ofixed=ccccccbbltfi -v</div><br /><br />Output<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent"> Firmware version 2.1.2 Touch level 1793 Program sequence 4<br /> Configuration data to be written to key configuration 1:<br /><br /> fixed: m:ccccccbbltfi<br /> uid: h:000000000000<br /> key: h:b4a4fd73c640312c01a2db2a237b33fb<br /> acc_code: h:000000000000<br /> ticket_flags: APPEND_CR<br /> config_flags:<br /><br /> Commit? (y/n) &#91;n&#93;: y<br /> Attempting to write configuration to the yubikey... success<br /></div><br /><br /><strong>2 - Add my self to /etc/yubikey</strong><br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent"># sudo ykpasswd -a --user andries -k b4a4fd73c640312c01a2db2a237b33fb -o ccccccbjltfikdiflrhvkgidvgfftbbnfcrhibnbfjub<br /> Adding Yubikey entry for andries<br /> Using public UID: 00 00 00 18 ad 47<br /> Using private UID: 00 00 00 00 00 00<br /> Completed successfully.<br /></div><br /><br /><strong>3 - Test with ykvalidate</strong><br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent"># ykvalidate -u andries ccccccbbltfihlbhklvrhjkgvchdjgllvhrlirrgbnuc<br /> OTP is INVALID!</div><br /><br />Tryed each time with a 'fresh' OTP.<br /><br /><strong>4 - Then I installed ykdebug</strong><br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent"># ykdebug b4a4fd73c640312c01a2db2a237b33fb ccccccbbltfijfkbjndtftnktltuflkbrnlnevruveci</div><br /><br />Output:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent"> warning: overlong token, ignoring prefix: ccccccbbltfi<br /> Input:<br /> token: jfkbjndtftnktltuflkbrnlnevruveci<br />            84 91 8b 2d 4d b9 da de 4a 91 cb ab 3f ce f3 07<br />  aeskey: b4a4fd73c640312c01a2db2a237b33fb<br />           b4 a4 fd 73 c6 40 31 2c 01 a2 db 2a 23 7b 33 fb<br /> Output:<br />           00 00 00 00 00 00 01 00 bb 5d c2 02 15 d1 ae 55<br /> Struct:<br />   uid: 00 00 00 00 00 00<br />   counter: 1 (0x0001)<br />   timestamp (low): 23995 (0x5dbb)<br />   timestamp (high): 194 (0xc2)<br />   session use: 2 (0x02)<br />   random: 53525 (0xd115)<br />   crc: 21934 (0x55ae)<br /><br /> Derived:<br />   cleaned counter: 1 (0x0001)<br />   modhex uid: cccccccccccc<br />   triggered by caps lock: no<br />   crc: F0B8<br />   crc check: ok<br /><br /></div><br /><br />So again: Last output is &quot;crc check: ok&quot;. So maybe you can give me a hint what I'm doing wrong.<br /><br />Regards Andries<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1242">andries</a> — Fri Jun 25, 2010 12:58 pm</p><hr />
]]></content>
</entry>
</feed>