You need to have a source for the -rand flag.
My solution was to use egd and create a file of sufficent length full of
random data.

then the command line was:
openssl genrsa -rand <file w/random data> -des3 1024 > server.key
or
openssl genrsa -rand <file w/random data> -des3 -out server.key 1024

Hope that helps.

Travis Theune

* Julio Cesar de Melhado e Lima ([EMAIL PROTECTED]) [000906 13:43]:
> 
> Hiya,
> 
> I'm using ssl0.9.5a on Solaris 8.
> I want to create a RSA private key for my Apache server (will be Triple-DES encrypted
> and PEM formatted):
> But, when I ran the command  :
> 
> ./openssl genrsa -rand -des3 -out server.key 1024
> 
> I have the following error :
> 
> 0 semi-random bytes loaded
> Generating RSA private key, 1024 bit long modulus
> 363:error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not
> seeded:md_rand.c:538:
> 363:error:04069003:rsa routines:RSA_generate_key:BN lib:rsa_gen.c:182:
> 
> What am I doing wrong ?
> 
> Thanks
> 
> ___________________________________
> Julio Cesar de Melhado e Lima
> Software Engineer
> CI&T - software enabling the e-world
> http://www.cit.com.br
> Phone: +55 19 3737.4538
> Fax: +55 19 3737.4501
> Mobile: +55 19 9111.7282
> Pager: www.tess.com.br/infotess
> 
> 
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to