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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2009-04-30T20:07:08+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=3&amp;t=319</id>
<entry>
<author><name><![CDATA[NicholasSushkin]]></name></author>
<updated>2009-04-30T20:07:08+01:00</updated>
<published>2009-04-30T20:07:08+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=319&amp;p=1434#p1434</id>
<link href="https://forum.yubico.com/viewtopic.php?t=319&amp;p=1434#p1434"/>
<title type="html"><![CDATA[Re: ykclient fails talking HTTP/1.1 to tomcat]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=319&amp;p=1434#p1434"><![CDATA[
<div class="quotetitle">guymatz wrote:</div><div class="quotecontent"><br />And it looks like you've found a resolution to the issue!  Thanks so much, Mr. Sushkin!  It's a pleasure to be a part of the Yubico community with such helpful people such as yourself!  If only there was a &quot;pat on the back&quot; emoticon . . .  I would give you *two* of them!<br /><br />Thanks again,<br />Guy Matz<br /></div><br /><br /><img src="https://forum.yubico.com/images/smilies/icon_lol.gif" alt=":lol:" title="Laughing" />  No problem at all, Mr. Matz<br /> <img src="https://forum.yubico.com/images/smilies/icon_idea.gif" alt=":idea:" title="Idea" /> &quot;buy a beer&quot; emoticons?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=606">NicholasSushkin</a> — Thu Apr 30, 2009 8:07 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[guymatz]]></name></author>
<updated>2009-04-30T17:45:33+01:00</updated>
<published>2009-04-30T17:45:33+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=319&amp;p=1430#p1430</id>
<link href="https://forum.yubico.com/viewtopic.php?t=319&amp;p=1430#p1430"/>
<title type="html"><![CDATA[Re: ykclient fails talking HTTP/1.1 to tomcat]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=319&amp;p=1430#p1430"><![CDATA[
And it looks like you've found a resolution to the issue!  Thanks so much, Mr. Sushkin!  It's a pleasure to be a part of the Yubico community with such helpful people such as yourself!  If only there was a &quot;pat on the back&quot; emoticon . . .  I would give you *two* of them!<br /><br />Thanks again,<br />Guy Matz<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=345">guymatz</a> — Thu Apr 30, 2009 5:45 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[NicholasSushkin]]></name></author>
<updated>2009-04-30T17:02:44+01:00</updated>
<published>2009-04-30T17:02:44+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=319&amp;p=1429#p1429</id>
<link href="https://forum.yubico.com/viewtopic.php?t=319&amp;p=1429#p1429"/>
<title type="html"><![CDATA[Re: ykclient fails talking HTTP/1.1 to tomcat]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=319&amp;p=1429#p1429"><![CDATA[
Running into a known issue<br /><!-- m --><a class="postlink" href="http://code.google.com/p/yubico-c-client/issues/detail?id=2">http://code.google.com/p/yubico-c-clien ... etail?id=2</a><!-- m --><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=606">NicholasSushkin</a> — Thu Apr 30, 2009 5:02 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[NicholasSushkin]]></name></author>
<updated>2009-04-30T16:26:35+01:00</updated>
<published>2009-04-30T16:26:35+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=319&amp;p=1428#p1428</id>
<link href="https://forum.yubico.com/viewtopic.php?t=319&amp;p=1428#p1428"/>
<title type="html"><![CDATA[Re: ykclient fails talking HTTP/1.1 to tomcat]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=319&amp;p=1428#p1428"><![CDATA[
I rerun Guy's test with ykclient SVN revision 59 (latest as of today). It looks like there is some problem parsing out lines of response.<br />Here's the output of ykclient run with debug enabled. Notice how the status variable has length of 51 and contains both status=... and h=... lines.<br /><br />./ykclient 2 tgueneblcteluhgudfnbbiffevgddlifgnngiekvuiuu<br />Input:<br />  client id: 2<br />  token: tgueneblcteluhgudfnbbiffevgddlifgnngiekvuiuu<br />debug: ykclient.c:399 (ykclient_request): server response (83): t=2009-04-30T10:16:03Z0613<br />status=REPLAYED_OTP<br />h=BWwOiYTKijmo3SJCmUT1XyMLGPY=<br /><br />debug: ykclient.c:412 (ykclient_request): parsed status (51): status=REPLAYED_OTP<br />h=BWwOiYTKijmo3SJCmUT1XyMLGPY=<br />Verification output (101): Could not parse server response<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=606">NicholasSushkin</a> — Thu Apr 30, 2009 4:26 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[guymatz]]></name></author>
<updated>2009-04-29T21:58:31+01:00</updated>
<published>2009-04-29T21:58:31+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=319&amp;p=1423#p1423</id>
<link href="https://forum.yubico.com/viewtopic.php?t=319&amp;p=1423#p1423"/>
<title type="html"><![CDATA[ykclient fails talking HTTP/1.1 to tomcat]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=319&amp;p=1423#p1423"><![CDATA[
ykclient fails, but it shouldn't!<br />i get the following when trying to authenticate to a local authentication server:<br />[gmatz@bunnybear ykclient-2.2]$ ./ykclient 1 frrdebhfhebhtdvevvthgktfutbigvkufb<br />Input:<br />  client id: 1<br />  token: frrdebhfhebhtdvevvthgktfutbigvkufb<br />Verification output (101): Could not parse server response<br /><br />however my webserver log says:<br /><br />2009-04-29 15:45:01,863 [http-8080-1] DEBUG com.yubico.wsapi.Database - com.mysql.jdbc.ServerPreparedStatement[1] - select * from clients where id = '1'<br />2009-04-29 15:45:01,866 [http-8080-1] DEBUG com.yubico.wsapi.Database - com.mysql.jdbc.ServerPreparedStatement[2] - select * from perms where id = '1'<br />2009-04-29 15:45:01,868 [http-8080-1] INFO  com.yubico.wsapi.Perms - Checking [VerificationRequest [Request [Message map={id=1, otp=frhikfucfnvevtunnfrrdirlcdliihivdutlbjllhdcu}]]] against [Perms verify otp=true, add clients=true, delete clients=true, add keys=true, delete keys=true]<br />2009-04-29 15:45:01,895 [http-8080-1] INFO  com.yubico.wsapi.Database - com.mysql.jdbc.ServerPreparedStatement[1] - select * from yubikeys where tokenId = 'TGeU4Evz'<br />2009-04-29 15:45:01,897 [http-8080-1] DEBUG com.yubico.wsapi.Database - com.mysql.jdbc.ServerPreparedStatement[1] - select * from yubikeys where tokenId = 'TGeU4Evz'<br />2009-04-29 15:45:01,899 [http-8080-1] DEBUG com.yubico.wsapi.KeySubsystem - secret=[Secret key=X3YvTwzsvfDC6CZoo3NJ6g==]<br />2009-04-29 15:45:01,899 [http-8080-1] DEBUG com.yubico.wsapi.KeySubsystem - otp=vtunnfrrdirlcdliihivdutlbjllhdcu<br />2009-04-29 15:45:01,919 [http-8080-1] DEBUG com.yubico.wsapi.Database - com.mysql.jdbc.ServerPreparedStatement[1] - update yubikeys set accessed='2009-04-29 15:45:01', counter=64, high=101, low=48332, sessionUse=0 where tokenId='TGeU4Evz'<br />2009-04-29 15:45:01,987 [http-8080-1] DEBUG com.yubico.wsapi.VerificationResponse - client signer=[Client created=Wed Apr 15 00:00:00 GMT-05:00 2009, email=fooo@bar.com, secret=[Secret key=Mysecret], perms=[Perms verify otp=true, add clients=true, delete clients=true, add keys=true, delete keys=true]]<br />2009-04-29 15:45:01,987 [http-8080-1] <strong>DEBUG com.yubico.wsapi.Message - message.sign, map={t=2009-04-29T15:45:01Z0987, status=OK}</strong><br />2009-04-29 15:45:01,987 [http-8080-1] <strong>DEBUG com.yubico.wsapi.Crypto - about to sign {t=2009-04-29T15:45:01Z0987, status=OK}</strong><br />2009-04-29 15:45:01,988 [http-8080-1] <strong>DEBUG com.yubico.wsapi.Crypto - signing status=OK&amp;t=2009-04-29T15:45:01Z0987 with [Secret key=MySecret] into hpiahOFNvJ6DA3rUxnUnqIe1k/g=</strong><br /><br />strace says that ykclient (libcurl) is initiating a HTTP/1.1 call (its default), so i tried a few HTTP/1.0 GETs by hand and it looks like it fails in HTTP/1.1 GETs and only works with HTTP/1.0 GETs<br /><br />[gmatz@bunnybear ykclient-2.2]$ telnet localhost 8080<br />Trying 127.0.0.1...<br />Connected to localhost.<br />Escape character is '^]'.<br />GET /wsapi/verify?id=1&amp;otp=frhikfucfnvecjgvhkbigeknvglrdlbclhbbnlkhnujk HTTP/1.0<br /><br />HTTP/1.1 200 OK<br />Server: Apache-Coyote/1.1<br />Content-Type: text/plain<br />Content-Length: 73<br />Date: Wed, 29 Apr 2009 20:50:03 GMT<br />Connection: close<br /><br />t=2009-04-29T15:50:03Z0415<br />status=OK<br />h=qrEMiTi7i4tcOR2NKJem1VDoYZk=<br /><br />Connection closed by foreign host.<br />[gmatz@bunnybear ykclient-2.2]$ telnet localhost 8080<br />Trying 127.0.0.1...<br />Connected to localhost.<br />Escape character is '^]'.<br />GET /wsapi/verify?id=1&amp;otp=frhikfucfnvelvgjgdujjvvhulvrjtjdnuffnnegflbh HTTP/1.1<br /><br />HTTP/1.1 400 Bad Request<br />Server: Apache-Coyote/1.1<br />Transfer-Encoding: chunked<br />Date: Wed, 29 Apr 2009 20:50:27 GMT<br />Connection: close<br /><br />0<br /><br />Connection closed by foreign host.<br /><br /><br />I added a line to ykclient.c to force a 1.0 connection:<br />curl_easy_setopt (ykc-&gt;curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);<br /><br />but I still get a 1.1 response from my tomcat 6 server.<br /><br />BTW, does anyone know why the server is hard-coded in ykclient?  why it doesn't take command line params?<br /><br />any help here would be much appreciated.<br /><br />Regards,<br />Guy<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=345">guymatz</a> — Wed Apr 29, 2009 9:58 pm</p><hr />
]]></content>
</entry>
</feed>