Very preliminary POD format documentation for some
[openssl.git] / doc / man / genrsa.pod
1 =pod
2
3 =head1 NAME
4
5 genrsa - generate an RSA private key
6
7
8 =head1 SYNOPSIS
9
10 B<openssl> B<genrsa>
11 [B<-out filename>]
12 [B<-des>]
13 [B<-des3>]
14 [B<-idea>]
15 [B<-f4>]
16 [B<-3>]
17 [B<-rand file:file>]
18 [B<numbits>]
19
20 =head1 DESCRIPTION
21
22 The B<genrsa> command generates an RSA private key.
23
24 =head1 OPTIONS
25
26 =over 4
27
28 =item B<-des|-des3|-idea>
29
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.
33
34 =item B<-F4|-3>
35
36 the public exponent to use, either 65537 or 3. The default is 65537.
37
38 =item B<-rand file:file>
39
40 a file or files containing random data used to seed the random number
41 generator. Multiple files can be specified separated by B<:>.
42
43 =item B<numbits>
44
45 the size of the private key to generate in bits. This must be the last option
46 specified. The default is 512.
47
48 =back
49
50 =head1 NOTES
51
52 RSA private key generation essentially involves the generation of two prime
53 numbers. When generating a private key various symbols will be output to
54 indicate the progress of the generation. A B<.> represents each number tested.
55 A B<+> means a number has passed a single primality test. A newline means that
56 the number has passed all the prime tests (currently set to 5 single tests).
57
58 Because key generation is a random process the time taken to generate a key
59 may vary somewhat.
60
61 =head1 BUGS
62
63 A quirk of the prime generation algorithm is that it cannot generate small
64 primes. Therefore the number of bits should not be less that 64. For typical
65 private keys this will not matter because for security reasons they will
66 be much larger (typically 1024 bits).
67
68 =head1 SEE ALSO
69
70 gendsa(1)