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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2017-09-26T05:48:09+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=35&amp;t=2691</id>
<entry>
<author><name><![CDATA[valgenova]]></name></author>
<updated>2017-09-26T05:48:09+01:00</updated>
<published>2017-09-26T05:48:09+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2691&amp;p=9773#p9773</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2691&amp;p=9773#p9773"/>
<title type="html"><![CDATA[Re: [Question]Self hosted validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2691&amp;p=9773#p9773"><![CDATA[
Hi,<br /><br />After installing a personalization tool in windows,personalize my slot2,  then input it in the ykksm database. I was able to test via wget on the localhost. Also test connection via ykclient and I get a SUCCESS OTP<br /><br />Then I configure a VE container, setup pam.d and ssh for two step authentication, and test loging in via ssh, and I was able to login, logs from ykksm server also logs this<br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Sep 26 00:36:02 auth-ksm ykksm[2090]: SUCCESS OTP myyubikeykeys PT myrandomlogs OK counter=0001 low=d301 high=b8 use=0b<br /></div><br /><br />If I got free time, will write a doc on what steps I made to make this self hosted validation server, and will share it here<br />Thank you<br /><br />valgenova<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4877">valgenova</a> — Tue Sep 26, 2017 5:48 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[valgenova]]></name></author>
<updated>2017-09-25T08:41:14+01:00</updated>
<published>2017-09-25T08:41:14+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2691&amp;p=9770#p9770</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2691&amp;p=9770#p9770"/>
<title type="html"><![CDATA[Re: [Question]Self hosted validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2691&amp;p=9770#p9770"><![CDATA[
Hi,<br /><br />Just a question, if I want to host a self validation server, do I really need to personalize my yubikey, or use the ykpersonalize tool. I tested my yubikey using dropbox, and the yubikey works fine, also I tried the pam.d login<br />my yubikey using the api.yubico.com to validate or verify also works fine, im trying to configure a self-hosted validation server and I'm getting this error. <br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Sep 19 23:24:48 auth-ksm ykksm[3533]: UID error: myyubicootpjtgtbtirtuhfchrhulentjbdhglulhdn f56e9c3d8737839e9b850b7394bb50d9: f56e9c3d8737 vs d3f0fc27cd93<br /></div><br /><br />The only step I did not do is to personalize the yubikey<br />Again my question is, do I have to personalize my yubikey in order for my ykksm to work?<br /><br />Thank you in advance<br /><br />valgenova<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4877">valgenova</a> — Mon Sep 25, 2017 8:41 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[valgenova]]></name></author>
<updated>2017-09-20T05:19:33+01:00</updated>
<published>2017-09-20T05:19:33+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2691&amp;p=9758#p9758</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2691&amp;p=9758#p9758"/>
<title type="html"><![CDATA[Re: [Question]Self hosted validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2691&amp;p=9758#p9758"><![CDATA[
Hi,<br /><br />Searching the net around to fix the mcrypt error<br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />PHP Fatal error:  Call to undefined function mcrypt_module_open() in /usr/share/yubikey-ksm/ykksm-utils.php on line 48<br /></div><br /><br />I have enabled the php5-mcrypt by editing the /etc/php5/apache2/php.ini add the line extension=mcrypt.so, then restart apache2.<br /><br />Then test the ykksm server again via<br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />curl 'http://localhost/wsapi/decrypt?otp=myyubicootpjtgtbtirtuhfchrhulentjbdhglulhdn' -v<br /></div><br />Then got this response<br />ERR Corrupt OTP<br />which the ykksm docs is the correct response, and the logs are<br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Sep 19 23:24:48 auth-ksm ykksm[3533]: UID error: myyubicootpjtgtbtirtuhfchrhulentjbdhglulhdn f56e9c3d8737839e9b850b7394bb50d9: f56e9c3d8737 vs d3f0fc27cd93<br /></div><br /><br />What I need to do now is troubleshoot the ykval server, when I run<br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />wget -q -O - 'http://localhost/wsapi/2.0/verify?id=1&amp;nonce=asdmalksdmlkasmdlkasmdlakmsdaasklmdlak&amp;otp=dteffujehknhfjbrjnlnldnhcujvddbikngjrtgh'<br /></div><br /><br />I should get a status=NO_SUCH_CLIENT, im getting status=BAD_OTP, I have already generated some clients on the database<br /><br />Thanks in advance<br /><br />valgenova<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4877">valgenova</a> — Wed Sep 20, 2017 5:19 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[valgenova]]></name></author>
<updated>2017-09-19T07:56:38+01:00</updated>
<published>2017-09-19T07:56:38+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2691&amp;p=9755#p9755</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2691&amp;p=9755#p9755"/>
<title type="html"><![CDATA[Re: [Question]Self hosted validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2691&amp;p=9755#p9755"><![CDATA[
Hi,<br /><br />Still troubleshooting the problem, to add for the troubleshooting<br /><br />When I run this command on the ykksm server to test<br />wget -O - 'http://localhost/wsapi/decrypt?otp=mykeyfkgknthctdkdkrleficdrlhvlbjlgter'<br /><br />error on the /var/log/apache2/ykksm-error.log<br />[Tue Sep 19 02:53:15.328215 2017] [:error] [pid 1465] [client 127.0.0.1:56256] PHP Fatal error:  Call to undefined function mcrypt_module_open() in /usr/share/yubikey-ksm/ykksm-utils.php on line 48<br /><br />I have php5-mcrypt installed.<br /><br />Thank you in advance.<br /><br />valgenova<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4877">valgenova</a> — Tue Sep 19, 2017 7:56 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[valgenova]]></name></author>
<updated>2017-08-23T05:19:58+01:00</updated>
<published>2017-08-23T05:19:58+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2691&amp;p=9713#p9713</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2691&amp;p=9713#p9713"/>
<title type="html"><![CDATA[[Question]Self hosted validation server]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2691&amp;p=9713#p9713"><![CDATA[
Hi,<br /><br />Im trying to setup a self hosted validation server or yubikey-val  and yubikey-ksm, both server are<br />separated, I have followed the steps in this url <!-- m --><a class="postlink" href="https://developers.yubico.com/yubikey-val/Installation.html">https://developers.yubico.com/yubikey-v ... ation.html</a><!-- m -->, <br />as well as <!-- m --><a class="postlink" href="https://developers.yubico.com/yubikey-ksm/">https://developers.yubico.com/yubikey-ksm/</a><!-- m -->  I have also installed ykclient on a separate server<br />to test, verify and decrypt my servers.<br /><br />I have generated the client keys and put in the yubikey-val server mysql with database of ykval.<br /><br />When I try to test using the ykclient and verify or <br />ykclient --url &quot;http://10.1.11.6/wsapi/2.0/verify&quot; --apikey my_apikey= 2 my_otpkey --debug<br />Verification output (1): Yubikey OTP was bad (BAD_OTP)<br /><br />My questions are:<br />1. trying to search the net for any documentation about this self hosted server, with separated server for both ykval and ykksm, if there is, can you point me to that url?<br />2. there is a setting in yubikey-val ykval-config.php<br />&quot;http://127.0.0.1:80/wsapi/decrypt?otp=$otp&quot;<br /><br />do I need to change this 127.0.0.1 to the ip address of my ykksm server?<br />3. is there any other config I need to edit for this self-hosted separated validation server and ykksm server<br />to work?<br /><br />Thank you in advance.<br />valgenova<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4877">valgenova</a> — Wed Aug 23, 2017 5:19 am</p><hr />
]]></content>
</entry>
</feed>