<div dir="ltr"><br><div class="gmail_extra">On Fri, Jun 20, 2014 at 6:20 PM, Petr Spacek <span dir="ltr"><<a href="mailto:pspacek@redhat.com" target="_blank">pspacek@redhat.com</a>></span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Unfortunately, it is absolutely crucial feature and we can't migrate to v2 until we find a way how to do key exports.<br>

<br>
I understand that it is not desirable to enable this by default, it is perfectly fine to provide key export in separate binary (i.e. not built-in into softhsm2-util).<br>
<br>
Could you point me to the right part of the code in SoftHSM so I can take a look if it is feasible to do key extraction, please?<br></blockquote><div><br></div><div>Are you looking for the functions C_WrapKey() and C_UnwrapKey()?</div>
<div><br></div><div><a href="https://github.com/opendnssec/SoftHSMv2/blob/develop/src/lib/SoftHSM.cpp#L4792">https://github.com/opendnssec/SoftHSMv2/blob/develop/src/lib/SoftHSM.cpp#L4792</a><br></div><div><a href="https://github.com/opendnssec/SoftHSMv2/blob/develop/src/lib/SoftHSM.cpp#L5066">https://github.com/opendnssec/SoftHSMv2/blob/develop/src/lib/SoftHSM.cpp#L5066</a><br>
</div><div><br></div><div>// Rickard</div></div></div></div>