"ZILBER,LEONID (HP-NewJersey,ex1)" wrote:
> 
> Hello,
> 
> I need to generate public/private keys. For some reasons I cannot access
> openSSL docs, I think maybe the load on the server is too high.
> Can someone provide me with an example how to do it?

I usually just type (when I can't remember)


# openssl openssl genrsa -Z
usage: genrsa [args] [numbits]
 -des            encrypt the generated key with DES in cbc mode
 -des3           encrypt the generated key with DES in ede cbc mode (168 bit key)
 -out file       output the key to 'file
 -passout arg    output file pass phrase source
 -f4             use F4 (0x10001) for the E value
 -3              use 3 for the E value
 -rand file:file:...
                 load the file (or the files in the directory) into
                 the random number generator

# rand 1024 > t ; openssl genrsa -f4 -rand t -out keyfile.pem ; rm t

this creates a private key file 'keyfile.pem' -- the public key
is derived therefrom,  as in when you generate a certificate signing
request or a self-signed cert.

Try 'openssl -Z' and go from there.  '-Z' isn't a valid command line
option, and will print useful usage guidelines.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to