Re: sfskey gen broken

"Timur Alperovich" <[email protected]> Fri, 28 Sep 2007 22:45:30 -0400
Newsgroups gmane.comp.file-systems.sfs.general
Message-ID <[email protected]>
------=_Part_1001_27688753.1191033930929
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Grant,

I had the same issue with it and there is indeed an error in the source. It
took me a little while to track it down, but for one of the function calls
the arguments are swapped. I'm gonna try to find out more details for you as
I haven't actually touched this in almost 3 months and at the time when I
asked if anyone would care for the patch no one on the mailing list
responded.

Timur

On 9/28/07, Grant Kelly <[email protected]> wrote:
>
> Hi,
>
> I'm getting the following when trying to generate a key:
>
> [root@myhost]# sfskey gen -KP  /etc/sfs/sfs_host_key
> sfskey: sfscd not running, limiting sources of entropy
> Creating new key: sfs_host_key#1 (Rabin)
>        Key Label: sfs_host_key
> sfskey:
>
> SK1::AAAARAAAAADnESApM9yVbwiiSzGIx3jmnzw13sKJIHxtMBs09kFwPB81ZRDkBbeQmkPx7AlygOOjsMEQit3eFmKiOuCi5IprAAAARAAAAAF7EVuEzfYb2llc2vYdc/5fjAT1ZeCCB5SCjgf0XJwywxMspDq8Iyq9Zb7f1+5qii99mm+4dddbxEgzCb:
> No such file or directory
> sfskey: /etc/sfs/sfs_host_key: No such file or directory
> sfskey: fatal: Not all key save operations succeeded
>
>
> To me, it looks like somehow the actual key is being used instead of the
> filename. I tried to look through the code for this mistake, but
> everything I saw seemed correct.
>
> I also tried just copying the output text to the sfs_host_key file, but
> then it complained it couldn't parse the key, so obviously I got the
> format wrong.
>
> This is on RedHat Enterprise 4. I'm still having problems compiling on
> Solaris 10 as I mentioned previously.
>
> --
> Grant Kelly
> [email protected]
> (775) 674 7164
> Desert Research Institute, Reno, NV
>
>

------=_Part_1001_27688753.1191033930929
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Grant,<br><br>I had the same issue with it and there is indeed an error in the source. It took me a little while to track it down, but for one of the function calls the arguments are swapped. I&#39;m gonna try to find out more details for you as I haven&#39;t actually touched this in almost 3 months and at the time when I asked if anyone would care for the patch no one on the mailing list responded.
<br><br>Timur<br><br><div><span class="gmail_quote">On 9/28/07, <b class="gmail_sendername">Grant Kelly</b> &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I&#39;m getting the following when trying to generate a key:<br><br>[root@myhost]# sfskey gen -KP&nbsp;&nbsp;/etc/sfs/sfs_host_key<br>sfskey: sfscd not running, limiting sources of entropy<br>Creating new key: sfs_host_key#1 (Rabin)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Key Label: sfs_host_key<br>sfskey:<br>SK1::AAAARAAAAADnESApM9yVbwiiSzGIx3jmnzw13sKJIHxtMBs09kFwPB81ZRDkBbeQmkPx7AlygOOjsMEQit3eFmKiOuCi5IprAAAARAAAAAF7EVuEzfYb2llc2vYdc/5fjAT1ZeCCB5SCjgf0XJwywxMspDq8Iyq9Zb7f1+5qii99mm+4dddbxEgzCb:
<br>No such file or directory<br>sfskey: /etc/sfs/sfs_host_key: No such file or directory<br>sfskey: fatal: Not all key save operations succeeded<br><br><br>To me, it looks like somehow the actual key is being used instead of the
<br>filename. I tried to look through the code for this mistake, but<br>everything I saw seemed correct.<br><br>I also tried just copying the output text to the sfs_host_key file, but<br>then it complained it couldn&#39;t parse the key, so obviously I got the
<br>format wrong.<br><br>This is on RedHat Enterprise 4. I&#39;m still having problems compiling on<br>Solaris 10 as I mentioned previously.<br><br>--<br>Grant Kelly<br><a href="mailto:[email protected]">[email protected]
</a><br>(775) 674 7164<br>Desert Research Institute, Reno, NV<br><br></blockquote></div><br>

------=_Part_1001_27688753.1191033930929--