Yubico Forum
https://forum.yubico.com/

[SOLVED] - How to install Yubikey validation server (.Net)
https://forum.yubico.com/viewtopic.php?f=5&t=1282
Page 1 of 1

Author:  dtran [ Fri Jan 10, 2014 11:06 am ]
Post subject:  [SOLVED] - How to install Yubikey validation server (.Net)

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 4091 times ]
yubikey installation.png
yubikey installation.png [ 28.75 KiB | Viewed 4091 times ]

Author:  Tom [ Fri Jan 10, 2014 12:19 pm ]
Post subject:  Re: [QUESTION] - How to install Yubikey validation server (.

http://stackoverflow.com/questions/2919 ... -algorithm

Author:  dtran [ Wed Jan 15, 2014 8:01 am ]
Post subject:  Re: [QUESTION] - How to install Yubikey validation server (.

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 4004 times ]

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/