<?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=2447" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2017-02-21T14:58:35+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=35&amp;t=2447</id>
<entry>
<author><name><![CDATA[mcdown75]]></name></author>
<updated>2017-02-21T14:58:35+01:00</updated>
<published>2017-02-21T14:58:35+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2447&amp;p=9412#p9412</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2447&amp;p=9412#p9412"/>
<title type="html"><![CDATA[Re: [QUESTION] - using yubikey in Java to encrypt/decrypt fi]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2447&amp;p=9412#p9412"><![CDATA[
You know that there are two different sides to the key.  The PIV and the OTP, right?  Check this post out.  <!-- l --><a class="postlink-local" href="https://forum.yubico.com/viewtopic.php?f=35&amp;t=2477&amp;p=9146&amp;hilit=change+pin#p9146">viewtopic.php?f=35&amp;t=2477&amp;p=9146&amp;hilit=change+pin#p9146</a><!-- l --><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4691">mcdown75</a> — Tue Feb 21, 2017 2:58 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Aurimas]]></name></author>
<updated>2016-10-05T12:52:11+01:00</updated>
<published>2016-10-05T12:52:11+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=2447&amp;p=9070#p9070</id>
<link href="https://forum.yubico.com/viewtopic.php?t=2447&amp;p=9070#p9070"/>
<title type="html"><![CDATA[[QUESTION] - using yubikey in Java to encrypt/decrypt files]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=2447&amp;p=9070#p9070"><![CDATA[
I'm very new to this so most of my questions may seem trivial.<br /><br />I'm trying to research whether I could use yubikeys for file encryption/decryption. Basically my goal is to create a small java application that takes a file that is encrypted with the public from the yubikey and then de-crypt it using the matching private key that is on the secure element of the yubikey.<br /><br />1. First question is, whether this is feasible. If yes - what would be the steps to achieve that (I assume I should utilize PIV applet somehow)<br /><br />So far I have managed to connect to yubikey and send various commands. However I'm facing certain issues:<br /><br />2. when sending the authenticate command (INS 0x20, P2 0x82), only few times I have managed to receive a 9000 response. Other times it's either 6A80 or 6D00. Whenever I try to verify pin via yubico-piv-tool command line, it is always successful. I cannot pinpoint the reason why I am receiving different responses (they seem quite random). It looks like it is somehow related to connection modes that I can change using NEO manager tool. When I set it to OTP+CCID, it mostly return 6A80, but then after some time answers to most commands become 6D00 until I reconfigure connection mode to OTP+U2F+CCID and then back to OTP+CCID<br />3. even with the basic command to get the version (INS 0xFD) I start getting 6D00 response at some point.<br /><br />Until I get the verification command to work consistently I guess there is no point trying to generate public keys, as authentication is required to be able to do that.<br /><br />Thanks,<br />Aurimas<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=4506">Aurimas</a> — Wed Oct 05, 2016 12:52 pm</p><hr />
]]></content>
</entry>
</feed>