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

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2016-08-27T00:42:06+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=33&amp;t=2401</id>
<entry>
<author><name><![CDATA[mouse008]]></name></author>
<updated>2016-08-27T00:42:06+01:00</updated>
<published>2016-08-27T00:42:06+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2401&amp;p=8909#p8909</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2401&amp;p=8909#p8909"/>
<title type="html"><![CDATA[Re: Get public and private key from Yubikey Neo in Java]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2401&amp;p=8909#p8909"><![CDATA[
Your application (in Java, or in C/C++) can <strong>use</strong> the private key stored in the YubiKey by telling the token to perform operations with that key (and supplying the correct PIN) - but there's no way (short of bringing a government lab and destructive equipment <img src="https://forum.yubico.com/images/smilies/icon_e_smile.gif" alt=":)" title="Smile" /> to [b/extract[/b] the key from the token. That is by design, and is the main reason people buy YubiKey and other similar devices.<br /><br />For normal public-key cryptography look up PKCS#11 access. Useful references: <br /><ul><li> <a href="https://github.com/OpenSC/OpenSC.git" class="postlink">https://github.com/OpenSC/OpenSC.git</a></li><li> <a href="https://github.com/CardContact/OpenSC-Java.git" class="postlink">https://github.com/CardContact/OpenSC-Java.git</a></li><li> Oracle's documentation on PKCS#11</li></ul><br />P.S. I haven't tried to actually program U2F (only &quot;normal&quot; PK processing using RSA and ECC) - but am pretty sure the approach would be rather similar.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4029">mouse008</a> — Sat Aug 27, 2016 12:42 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ihsanhaikalz]]></name></author>
<updated>2016-08-22T09:55:12+01:00</updated>
<published>2016-08-22T09:55:12+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2401&amp;p=8895#p8895</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2401&amp;p=8895#p8895"/>
<title type="html"><![CDATA[Get public and private key from Yubikey Neo in Java]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2401&amp;p=8895#p8895"><![CDATA[
I am trying to create Java client application that will receive private key stored in Yubikey Neo and later use the key to sign the challenge from the server for FIDO U2F, but the problem is when I touched the button in Yubikey Neo it will instead generate the OTP (Yubikey Neo is set with OTP and U2F). I read in the U2F page that currently only Chrome browser is able to use U2F. I tried to use java-u2flib-server package but it seems that it could not access the private key stored CMIIW. So is there anyway I could get the private key from Yubikey Neo in Java?<br /><br />Thanks<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4425">ihsanhaikalz</a> — Mon Aug 22, 2016 9:55 am</p><hr />
]]></content>
</entry>
</feed>