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

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

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=22&amp;t=1376</id>
<entry>
<author><name><![CDATA[Klas]]></name></author>
<updated>2014-04-29T15:12:22+01:00</updated>
<published>2014-04-29T15:12:22+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1376&amp;p=5217#p5217</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1376&amp;p=5217#p5217"/>
<title type="html"><![CDATA[Re: Permission flags for personalisation site]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1376&amp;p=5217#p5217"><![CDATA[
Good, one thing out of the way!<br /><br />The decrypt-aead script should only be run on a disconnected machine, otherwise you have no benefit of generating the keys inside the HSM in the first step.<br /><br />If you don't want to setup a disconnected station where you decrypt aeads and program the YubiKeys (which is the highest security you get) you could well program the keys first and then import with yhsm-import-keys.<br /><br />/klas<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2019">Klas</a> — Tue Apr 29, 2014 3:12 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[alexjfisher]]></name></author>
<updated>2014-04-29T14:57:59+01:00</updated>
<published>2014-04-29T14:57:59+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1376&amp;p=5215#p5215</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1376&amp;p=5215#p5215"/>
<title type="html"><![CDATA[Re: Permission flags for personalisation site]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1376&amp;p=5215#p5215"><![CDATA[
Hi Klas<br /><br />Thanks for your help.  With the git version, yhsm-generate-keys now works (with the --random-nonce option).<br />I had actually already tried the --random-nonce option, but was obviously hitting the bug.<br /><br />Having generated the keys, the next step is to run <br />yhsm-decrypt-aead --format yubikey-csv /var/cache/yubikey-ksm/aeads --aes-key $AEAD_AES_KEY ?<br /><br />This generates a csv that can be used for programming the yubikeys.<br /><br />Isn't it an issue that the aes-key has to be supplied on the commandline?<br /><br />Or perhaps there is a better way of provisioning our yubikeys (small site ~100 yubikeys)?<br />I could use the personalization tool to generate keys during the programming of the yubikeys instead? (and then use yhsm-import-keys to create the AEADs?)<br /><br />I'm finding it all a bit confusing, but am anxious to get it right and not invalid the security.<br /><br />Thanks,<br />Alex<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2894">alexjfisher</a> — Tue Apr 29, 2014 2:57 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Klas]]></name></author>
<updated>2014-04-29T14:14:37+01:00</updated>
<published>2014-04-29T14:14:37+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1376&amp;p=5214#p5214</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1376&amp;p=5214#p5214"/>
<title type="html"><![CDATA[Re: Permission flags for personalisation site]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1376&amp;p=5214#p5214"><![CDATA[
Hello,<br /><br />To generate aeads from user input those two flags are enough, though there's a gotcha in there namely the YSM_USER_NONCE flag. If the key can be supplied outside of the hsm (with YSM_BUFFER_LOAD) YSM_USER_NONCE should definately not be set and --random-nonce must be given to yhsm-generate-keys. To make matters more complicated there's a bug in all released versions of the yhsm-generate-keys script that makes the --random-nonce flag a noop:  <!-- m --><a class="postlink" href="https://github.com/Yubico/python-pyhsm/commit/ee04aad591b9e8e0f3fa52ab425ddf29ff087691">https://github.com/Yubico/python-pyhsm/ ... 29ff087691</a><!-- m --><br /><br />Hopefully this clears things up a bit..<br /><br />/klas<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2019">Klas</a> — Tue Apr 29, 2014 2:14 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[alexjfisher]]></name></author>
<updated>2014-04-29T12:50:35+01:00</updated>
<published>2014-04-29T12:50:35+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1376&amp;p=5211#p5211</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1376&amp;p=5211#p5211"/>
<title type="html"><![CDATA[Permission flags for personalisation site]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1376&amp;p=5211#p5211"><![CDATA[
Hi<br /><br />I'm setting up my own validation service complete with yubiHSM based KSMs.  The plan is to use two KSMs, so I'll need a total of 3 yubiHSMs, (I think).<br /><br />But I'm struggling with the yubiHSM part.  I understand that I should use a separate yubiHSM for generating AEADs with only the minimum permissions set.<br /><br />Section 5.1 from the YubiHSM reference manual states<br />'In the case above, devices 1-3 will then have the YSM_AEAD_YUBIKEY_OTP_DECODE flag enabled only whereas the device 4 will have any combination of the generation flags set only.'<br /><br />Which combination should I be setting?  So far, I've tried just YSM_BUFFER_AEAD_GENERATE with YSM_BUFFER_LOAD (the flags listed in the first row of the table on page 11, section 2.4 AEAD generation)<br />But this doesn't seem to be enough.  After leaving configuration mode, I've tried generating keys with yhsm-generate-keys, but this fails with<br />pyhsm.exception.YHSM_CommandFailed: &lt;YHSM_CommandFailed instance at 0x1dc2a00: Command YSM_BUFFER_AEAD_GENERATE failed: YSM_FUNCTION_DISABLED&gt;<br /><br />I've doubled checked, and the YSM_BUFFER_AEAD_GENERATE is definitely set, so why is it coming back YSM_FUNCTION_DISABLED?<br /><br />Many thanks for your help,<br />Alex<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2894">alexjfisher</a> — Tue Apr 29, 2014 12:50 pm</p><hr />
]]></content>
</entry>
</feed>