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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2014-11-14T15:46:00+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=26&amp;t=1587</id>
<entry>
<author><name><![CDATA[dwmw2]]></name></author>
<updated>2014-11-14T15:46:00+01:00</updated>
<published>2014-11-14T15:46:00+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1587&amp;p=6222#p6222</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1587&amp;p=6222#p6222"/>
<title type="html"><![CDATA[Re: [QUESTION] How do I enable YubiOATH in my application]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1587&amp;p=6222#p6222"><![CDATA[
Update: I've now pushed this out, and it's documented at <!-- m --><a class="postlink" href="http://www.infradead.org/openconnect/token.html">http://www.infradead.org/openconnect/token.html</a><!-- m --><br /><br />Code at <!-- m --><a class="postlink" href="http://git.infradead.org/users/dwmw2/openconnect.git/blob/HEAD:/yubikey.c">http://git.infradead.org/users/dwmw2/op ... /yubikey.c</a><!-- m --><br /><br />Any review comments would be welcome. It would be useful to have a consistent interface for using Yubikey from various applications.<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">$ ./openconnect --token-mode yubikey  --token-secret 'rôle ♥ foo' $SERVER<br /><br />Found ykneo-oath applet v0.2.1.<br />PIN required for Yubikey OATH applet<br />Yubikey PIN:&lt;wrong PIN&gt;<br />Failure response to &quot;unlock command&quot;: 6a80<br />PIN required for Yubikey OATH applet<br />Yubikey PIN:&lt;correct PIN&gt;<br />Found TOTP/SHA1 key 'rôle ♥ foo' on 'Yubico Yubikey NEO CCID 00 00'<br />POST https:/$SERVER/<br />...<br />Please enter your username and password.<br />Username:foo<br />Password:<br />Generating Yubikey token code<br />POST https://$SERVER/+webvpn+/index.html<br /></div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3261">dwmw2</a> — Fri Nov 14, 2014 3:46 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dwmw2]]></name></author>
<updated>2014-11-12T14:45:51+01:00</updated>
<published>2014-11-12T14:45:51+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1587&amp;p=6205#p6205</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1587&amp;p=6205#p6205"/>
<title type="html"><![CDATA[Re: [QUESTION] How do I enable YubiOATH in my application]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1587&amp;p=6205#p6205"><![CDATA[
Thanks. As with the python yubico-authenticator, that's kind of useful because it shows the commands to use. However, there are a bunch of things missing from it — like locking with SCardBeginTransaction() when we need to talk to the card, and reselecting the ykneo-oath applet because OpenSC might have been talking to the PIV applet when we come back for a new tokencode. Currently, yubico-authenticator breaks when that happens.<br /><br />It would be *so* useful if there was a simple library I could use to handle this for me, using something reminiscent of PKCS#11 URIs. So I just have a function which can give me a tokencode for<em> file://</em><em>home/dwmw2/foo.pskc</em> (updating the counter in the file as appropriate if it's a HOTP token, with file locking done consistently too). Or for <em>yubikey://cardident/objectname</em> for yubikey, for example, without individual applications having to have hardware-specific details.<br /><br />And while I think of it, wouldn't it be useful if RFC6030 defined a way for a PSKC file to refer to a token's secret key by means of a PKCS#11 URI?<br />And my hypothetical library (which is actually what oath-toolkit *ought* to provide instead of just the disjoint libpskc and liboath libraries) would Just Work™ with tokens in that form too.<br /><br />Anyway, I now have OpenConnect authenticating automatically to VPN servers using HOTP/TOTP tokens from a Yubikey NEO (as well as SSL private keys stored therein). There's a little more cleanup to be done, but I've pushed it to <!-- m --><a class="postlink" href="http://git.infradead.org/users/dwmw2/openconnect.git/commitdiff/c24046b">http://git.infradead.org/users/dwmw2/op ... ff/c24046b</a><!-- m --><br /><br />It's the first time I've ever looked at PC/SC code so I don't claim there's anything particularly competent about it, but if you want to use any of it as the basis for a C library that at *least* supports Yubikey (rather than embarking on the grand plan outlined above), you're welcome to it under LGPLv2 or later.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3261">dwmw2</a> — Wed Nov 12, 2014 2:45 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Tom]]></name></author>
<updated>2014-11-10T09:56:28+01:00</updated>
<published>2014-11-10T09:56:28+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1587&amp;p=6164#p6164</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1587&amp;p=6164#p6164"/>
<title type="html"><![CDATA[Re: [QUESTION] How do I enable YubiOATH in my application]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1587&amp;p=6164#p6164"><![CDATA[
try the test client here:<br /><!-- m --><a class="postlink" href="https://github.com/Yubico/ykneo-oath">https://github.com/Yubico/ykneo-oath</a><!-- m --><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2195">Tom</a> — Mon Nov 10, 2014 9:56 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dwmw2]]></name></author>
<updated>2014-11-06T23:19:23+01:00</updated>
<published>2014-11-06T23:19:23+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1587&amp;p=6142#p6142</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1587&amp;p=6142#p6142"/>
<title type="html"><![CDATA[[QUESTION] How do I enable YubiOATH in my application]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1587&amp;p=6142#p6142"><![CDATA[
I have a VPN client application which currently supports HOTP and TOTP via oath-toolkit, automatically generating response codes where the VPN server requests them: <!-- m --><a class="postlink" href="http://www.infradead.org/openconnect/token.html">http://www.infradead.org/openconnect/token.html</a><!-- m --><br /><br />I would like to support OATH using Yubikeys too. Do I need to use libykneomgr and construct the traffic myself, having worked out what to send from commands.py and functions.py in yubico_authenticator? Or is there a better way?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3261">dwmw2</a> — Thu Nov 06, 2014 11:19 pm</p><hr />
]]></content>
</entry>
</feed>