skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 2:... HP Open Source Security for OpenVMS Volume 2:...
go to beginning of reference: OpenSSL Command Line Interface (CLI) Reference OpenSSL Command Line Interface (CLI) Reference
go to previous page: gendsa gendsa
go to next page: nseqnseq
end of book navigation links


genrsa
Description
Notes
See Also
 Options
Restrictions

NAME

genrsa - generate an RSA private key

Synopsis  

openssl genrsa [-out filename] [-passout arg] [-des] [-des3] [-idea] [-f4] [-3] [-rand file(s)] [-engine id] [numbits]


return to top DESCRIPTION  

The genrsa command generates an RSA private key.


return to top OPTIONS  


return to top NOTES  

RSA private key generation essentially involves the generation of two prime numbers. When generating a private key various symbols will be output to indicate the progress of the generation. A . represents each number which has passed an initial sieve test, + means a number has passed a single round of the Miller-Rabin primality test. A newline means that the number has passed all the prime tests (the actual number depends on the key size).

Because key generation is a random process the time taken to generate a key may vary somewhat.


return to top Restrictions  

A quirk of the prime generation algorithm is that it cannot generate small primes. Therefore the number of bits should not be less that 64. For typical private keys this will not matter because for security reasons they will be much larger (typically 1024 bits).


return to top SEE ALSO  

gendsa(1)
go to previous page: gendsa gendsa
go to next page: nseqnseq