[Openais] a question about the authkey used by corosync

Russell Bryant russell at russellbryant.net
Mon Mar 14 07:21:55 PDT 2011


On Mon, Mar 14, 2011 at 2:21 AM, JiaQiang Xu <xjqkilling at gmail.com> wrote:
> Hi,
> I want to turn on Coorsync's encryption feature. But I find that
> corosync-keygen may
> block on reading /dev/random, which is not preferred in my working
> environment.
> I want to generate the authkey in a script and don't want user intervention.
> Is it possible to generate the key from /dev/urandom? Or is there some other
> ways to
> generate a suitable auth key without blocking?

Someone actually just asked this question a couple of weeks ago.  A
new option, -l, was added to corosync-keygen to address this issue.
Check the list archives for more details.  When using this option,
corosync-keygen uses /dev/urandom instead so it won't block.

--
Russell Bryant


More information about the Openais mailing list