Yubico Forum

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

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Jan 10, 2014 11:06 am 
Offline

Joined: Fri Jan 10, 2014 10:36 am
Posts: 2
Hi everybody,

Sorry for this kind of simple (stupid) question, but I'm a newbee on Yubikey and I just read about Yubikey for 2 days. I bought a key and tried it, it worked perfectly.

Then I want to host the validation server on my own server, instead of using the free validation service (https://api.yubico.com/wsapi/2.0/verify) so I downloaded
open-source from google code at http://code.google.com/p/yubikey-validation-server-net/ to try.

I run the Yubikey.Installer WinForms project to setup database schema and init data. However, I am not sure about some parameters I need to specify in the installation form. (please see the attached screenshot)

Can you please give me some sample parameters that are valid? Currently I set:

Encryption Key: 0123456789abcdef0123456789abcdef
Encryption Key Format: Hex
Root Yubikey OTP: ccccccdbbvleefthbeuccfbetcrhvtlcjlivujjrbdnl (generated from my physical yubikey)
Root Yubikey AES Secret (Base64): AAwka7Wj4nyf0+Fua8uKZi2y2NI= --> wrong size, should be B/WvxVhf3oMCvtISR3luiA==
Root Pin: 123456

But I cannot run the installation successfully. It created the database schema successfully, but was failed to insert initial data.
I got CryptographicException: "Specified key is not a valid size for this algorithm." (please see the attached screenshot for more details).

Thanks in advance.


Attachments:
Yubikey installation exception.png
Yubikey installation exception.png [ 62.55 KiB | Viewed 4092 times ]
yubikey installation.png
yubikey installation.png [ 28.75 KiB | Viewed 4092 times ]


Last edited by dtran on Wed Jan 15, 2014 8:08 am, edited 2 times in total.
Top
 Profile  
Reply with quote  

Share On:

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

PostPosted: Fri Jan 10, 2014 12:19 pm 
Offline
Site Admin
Site Admin

Joined: Wed Nov 14, 2012 2:59 pm
Posts: 666
http://stackoverflow.com/questions/2919 ... -algorithm

_________________
-Tom


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 15, 2014 8:01 am 
Offline

Joined: Fri Jan 10, 2014 10:36 am
Posts: 2
Yeah, thanks so much, finally I hosted Yubikey Validation Server successfully on my local machine.

It validates then return status OK for the first valid OTP and REPLAYED_OTP if OTP posted twice. Perfect! :)


Attachments:
Yubikey validation server .NET.png
Yubikey validation server .NET.png [ 33.63 KiB | Viewed 4005 times ]
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


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