5 genrsa - generate an RSA private key
22 The B<genrsa> command generates an RSA private key.
28 =item B<-des|-des3|-idea>
30 These options encrypt the private key with the DES, triple DES, or the
31 IDEA ciphers respectively before outputting it. A pass phrase is prompted for.
32 If none of these options is specified no encryption is used.
36 the public exponent to use, either 65537 or 3. The default is 65537.
38 =item B<-rand file(s)>
40 a file or files containing random data used to seed the random number
41 generator. Multiple files can be specified separated by a OS-dependent
42 character. For MS-Windows, the separator is B<;>. For OpenVMS, it's
43 B<,>. For all others, it's B<:>.
47 the size of the private key to generate in bits. This must be the last option
48 specified. The default is 512.
54 RSA private key generation essentially involves the generation of two prime
55 numbers. When generating a private key various symbols will be output to
56 indicate the progress of the generation. A B<.> represents each number tested.
57 A B<+> means a number has passed a single primality test. A newline means that
58 the number has passed all the prime tests (currently set to 5 single tests).
60 Because key generation is a random process the time taken to generate a key
65 A quirk of the prime generation algorithm is that it cannot generate small
66 primes. Therefore the number of bits should not be less that 64. For typical
67 private keys this will not matter because for security reasons they will
68 be much larger (typically 1024 bits).