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

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

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=5&amp;t=508</id>
<entry>
<author><name><![CDATA[jugsofbeer]]></name></author>
<updated>2010-03-19T00:29:19+01:00</updated>
<published>2010-03-19T00:29:19+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=508&amp;p=2135#p2135</id>
<link href="https://forum.yubico.com/viewtopic.php?t=508&amp;p=2135#p2135"/>
<title type="html"><![CDATA[Yubico Java Validation  Server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=508&amp;p=2135#p2135"><![CDATA[
Im having trouble getting a personalised Yubikey to validate against a local java validation server ive deployed.<br /><br />Can anyone tell me what im doing wrong, and what my sql insert statements should look like. Im fairly sure ive done something stupid with the conversions.<br /><br />-----<br /><br />I’ve re-programmed this yubikey and my new values are<br /><br />Public ID:          c0ecbe65a0ff<br />Secret ID:         3614c54cf25d<br />Key:                 2823c5539a281155fec52a7eb583dd08<br /><br />My yubikey now generates OTP’s in this format<br />rcurnuhglcvvnrivtdbjjricghhjbnehidnlvkbkhlrk<br /><br />rcurnuhglcvvhklljbtbdujrengfiblgnijcbdhbkijk<br /><br />Using your modhex calculator, I converted the above values to<br /><br />Public ID:            c0ecbe65a0ff  <br />Source Format:   Hex  <br />Base64 Result = wOy+ZaD/<br /><br />Secret ID:         3614c54cf25d<br /><br />Key:                   2823c5539a281155fec52a7eb583dd08<br />Source Format:   Hex  <br />Base64 Result =  KCPFU5ooEVX+xSp+tYPdCA==<br /><br />            <br /><br /> <br /><br />My sql insert statements therefore are<br /><br />insert into perms values(1,true,true,true,true,true);<br />insert into clients (id,perm_id, active, created, email, secret) values (1,1,1, current_timestamp, <!-- e --><a href="mailto:'ben.ataya@apnonline.co.nz">'ben.ataya@apnonline.co.nz</a><!-- e -->', 'TWIWuqIJKVWhXPbVuxEiHv5GSA0=');<br />insert into yubikeys  (id,client_id,active,userid,created,accessed,tokenId,secret) values (1,1,1,'3614c54cf25d',CURRENT_TIMESTAMP,CURRENT_TIMESTAMP,'wOy+ZaD/','KCPFU5ooEVX+xSp+tYPdCA==');<br /><br /> <br />…<br /><br />I stopped and restarted the database and webserver to ensure nothings cached, and I still get BAD_OTP message.<br /><br /><!-- m --><a class="postlink" href="http://10.33.104.147:8004/verify?otp=rcurnuhglcvvkgjtkgghrhirkvugjgeeevhdhddkhbdi&amp;id=1">http://10.33.104.147:8004/verify?otp=rc ... khbdi&amp;id=1</a><!-- m --><br />-----<br />t=2010-03-19T12:12:02Z0008<br />status=BAD_OTP<br />h=LvlAUJ/qwh80wZXInHPLcgrcPdo=<br />------<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1124">jugsofbeer</a> — Fri Mar 19, 2010 12:29 am</p><hr />
]]></content>
</entry>
</feed>