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

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

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=22&amp;t=709</id>
<entry>
<author><name><![CDATA[air]]></name></author>
<updated>2014-01-14T11:20:26+01:00</updated>
<published>2014-01-14T11:20:26+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=709&amp;p=4804#p4804</id>
<link href="https://forum.yubico.com/viewtopic.php?t=709&amp;p=4804#p4804"/>
<title type="html"><![CDATA[Re: loading yubikey db documentation question]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=709&amp;p=4804#p4804"><![CDATA[
<div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Once at the &quot;HSM&gt;&quot; prompt, I generated five secrets with the keygen command, and then tried to load in my yubikey data using the dbload command. Any input I provided it was met with &quot;too short&quot; or &quot;invalid format&quot; errors. The manual indicates it wants the output of a yubico configuration tool, so I was trying with variations of the ykcustomize output:<br />fixed: m:iecrfviecrfv<br />uid: h:000000000000<br />key: h:db2eaa9150919f236d5bc789459e227c<br />acc_code: h:000000000000<br />ticket_flags: APPEND_CR<br />config_flags: <br />extended_flags:<br /></div><br /><br />The above is the wrong format. The input should be in a CSV like format, like this: -<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">00001,ftftftfteeee,f0f1f2f3f4f5,4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d4d,,,</div><br /><br />If you are using an Admin YubiKey, then you will need to have it in the saved in the YubiHSM on-device database with the dbload command. You can test that it is in the DB correctly by using the otpverify command, you should see it print &quot; - ok&quot; after entering the OTP.<br /><br />If you didn't set a master key nor a Admin YubiKey, you shouldn't need to unseal/unlock the YubiHSM, attempting to do some might fail, I'm not sure. Perhaps attempting to unlock using an all-zeros key will work, I haven't tested it. In general if you attempt to unlock/unseal it with an invalid key it will actually lock it.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2675">air</a> — Tue Jan 14, 2014 11:20 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[chadl]]></name></author>
<updated>2011-09-12T15:11:18+01:00</updated>
<published>2011-09-12T15:11:18+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=709&amp;p=2803#p2803</id>
<link href="https://forum.yubico.com/viewtopic.php?t=709&amp;p=2803#p2803"/>
<title type="html"><![CDATA[loading yubikey db documentation question]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=709&amp;p=2803#p2803"><![CDATA[
Hello,<br /><br />I have just gotten my Yubihsm, and starting to get my mind around it so that I can start implementing it into my applications.<br /><br />I have two problems that I can't determine aren't related, the hsm reporting keystore sealed, and being unable to load yubikeys via dbload.  I'll describe what I did with both issues, in the event that they are related, but I suspect the former issue is caused by the latter.<br /><br />During the setup (finial prompts after entering the &quot;hsm&quot; command from the NO_CFG&gt; prompt), the yubihsm prompts for an &quot;Admin public ID&quot;.  I presume this is the public id of the yubikey that I plan to use to unseal it,  so I entered the public id of the customized key that I had made.  I then told it to generate a random string when I was prompted for an &quot;Admin master key&quot;.<br /><br />Once at the &quot;HSM&gt;&quot; prompt, I generated five secrets with the keygen command, and then tried to load in my yubikey data using the dbload command.  Any input I provided it was met with &quot;too short&quot; or &quot;invalid format&quot; errors.  The manual indicates it wants the output of a yubico configuration tool, so I was trying with variations of the ykcustomize output:<br />fixed: m:iecrfviecrfv<br />uid: h:000000000000<br />key: h:db2eaa9150919f236d5bc789459e227c<br />acc_code: h:000000000000<br />ticket_flags: APPEND_CR<br />config_flags: <br />extended_flags: <br /><br />I also tried a few other formats, attempting to brute-force the desired format, but got nowhere.  The manual doesn't seem to provide an example format, so I don't have anything to base my pasts off of (I am using minicom with the Linux generic usb serial driver to talk to the hsm).<br /><br />I don't have a Windows box to see if the Windows version of the tool provides better output, but the manual for that didn't seem to point to any such output.<br /><br />After giving up and running the exit command to play with plain encryption, every attempt to use the pyhsm examples that require access to the keystore leads to a YSM_KEYSTORE_SEALED (typing this off the top of my head, but somthing similar to that) error.  Attempting to run the unseal example with the master key I provided and --no-otp, an otp from the token (though it wouldn't be able to validate it without the db loaded) and master key, and a few other combinations all had no useful results.  In both cases I was able to use the Yubihsm to load random numbers into /dev/random.<br /><br />I have also tried leaving both the admin public id and admin master key fields blank during yubihsm setup, but that results in the same sealed errors, and being unable to unseal it using blank details to the unseal util.<br /><br />I am guessing that my woes are related to my inability to use the &quot;dbload&quot; command to tell it the secret of the yubikey I am using for administration.  So I am wondering if someone can confirm that is indeed the reason that the hsm is telling me everything it is sealed, and then give me an example format for the HSM dbload command so that I can try that.<br /><br />Thanks,<br />- Chad<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1810">chadl</a> — Mon Sep 12, 2011 3:11 pm</p><hr />
]]></content>
</entry>
</feed>