Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 3:17 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Mar 19, 2010 12:29 am 
Offline

Joined: Fri Mar 19, 2010 12:23 am
Posts: 1
Im having trouble getting a personalised Yubikey to validate against a local java validation server ive deployed.

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.

-----

I’ve re-programmed this yubikey and my new values are

Public ID: c0ecbe65a0ff
Secret ID: 3614c54cf25d
Key: 2823c5539a281155fec52a7eb583dd08

My yubikey now generates OTP’s in this format
rcurnuhglcvvnrivtdbjjricghhjbnehidnlvkbkhlrk

rcurnuhglcvvhklljbtbdujrengfiblgnijcbdhbkijk

Using your modhex calculator, I converted the above values to

Public ID: c0ecbe65a0ff
Source Format: Hex
Base64 Result = wOy+ZaD/

Secret ID: 3614c54cf25d

Key: 2823c5539a281155fec52a7eb583dd08
Source Format: Hex
Base64 Result = KCPFU5ooEVX+xSp+tYPdCA==





My sql insert statements therefore are

insert into perms values(1,true,true,true,true,true);
insert into clients (id,perm_id, active, created, email, secret) values (1,1,1, current_timestamp, 'ben.ataya@apnonline.co.nz', 'TWIWuqIJKVWhXPbVuxEiHv5GSA0=');
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==');




I stopped and restarted the database and webserver to ensure nothings cached, and I still get BAD_OTP message.

http://10.33.104.147:8004/verify?otp=rc ... khbdi&id=1
-----
t=2010-03-19T12:12:02Z0008
status=BAD_OTP
h=LvlAUJ/qwh80wZXInHPLcgrcPdo=
------


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group