On Wed, Aug 21, 2002 at 12:11:15AM +0530, [EMAIL PROTECTED] wrote:
> I am trying to generate the key pair using the "openssl genrsa" command.
>
> Initially I got a problem with using this -
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> openssl genrsa -out testkey.pem -3 1024
> warning, not much extra random data, consider using the -rand option
> Generating RSA private key, 1024 bit long modulus
> 4647:error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not
> seeded:md_rand.c:501:You
> need to read the OpenSSL FAQ, http://www.openssl.org/support/faq.html
> 4647:error:04069003:rsa routines:RSA_generate_key:BN lib:rsa_gen.c:182:
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> To resolve this, I am trying to run this command, where in the random seed
> is provided by the /dev/random file
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> openssl genrsa -rand /dev/random -out testkey.pem -3 1024
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> This just hangs with out doing any thing. Am I missing something or any
> other work around?
This is discussed in the FAQ, coming with the OpenSSL distribution:
/dev/random is a device that will give you an infinite amount of
entropy, thus genrsa will wait forever retrieving entropy.
Best regards,
Lutz
--
Lutz Jaenicke [EMAIL PROTECTED]
http://www.aet.TU-Cottbus.DE/personen/jaenicke/
BTU Cottbus, Allgemeine Elektrotechnik
Universitaetsplatz 3-4, D-03044 Cottbus
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]