Add RFC7919 documentation.
[openssl.git] / doc / man1 / gendsa.pod
1 =pod
2
3 =head1 NAME
4
5 gendsa - generate a DSA private key from a set of parameters
6
7 =head1 SYNOPSIS
8
9 B<openssl> B<gendsa>
10 [B<-help>]
11 [B<-out filename>]
12 [B<-aes128>]
13 [B<-aes192>]
14 [B<-aes256>]
15 [B<-aria128>]
16 [B<-aria192>]
17 [B<-aria256>]
18 [B<-camellia128>]
19 [B<-camellia192>]
20 [B<-camellia256>]
21 [B<-des>]
22 [B<-des3>]
23 [B<-idea>]
24 [B<-rand file...>]
25 [B<-writerand file>]
26 [B<-engine id>]
27 [B<paramfile>]
28
29 =head1 DESCRIPTION
30
31 The B<gendsa> command generates a DSA private key from a DSA parameter file
32 (which will be typically generated by the B<openssl dsaparam> command).
33
34 =head1 OPTIONS
35
36 =over 4
37
38 =item B<-help>
39
40 Print out a usage message.
41
42 =item B<-out filename>
43
44 Output the key to the specified file. If this argument is not specified then
45 standard output is used.
46
47 =item B<-aes128|-aes192|-aes256|-aria128|-aria192|-aria256|-camellia128|-camellia192|-camellia256|-des|-des3|-idea>
48
49 These options encrypt the private key with specified
50 cipher before outputting it. A pass phrase is prompted for.
51 If none of these options is specified no encryption is used.
52
53 =item B<-rand file...>
54
55 A file or files containing random data used to seed the random number
56 generator.
57 Multiple files can be specified separated by an OS-dependent character.
58 The separator is B<;> for MS-Windows, B<,> for OpenVMS, and B<:> for
59 all others.
60
61 =item [B<-writerand file>]
62
63 Writes random data to the specified I<file> upon exit.
64 This can be used with a subsequent B<-rand> flag.
65
66 =item B<-engine id>
67
68 Specifying an engine (by its unique B<id> string) will cause B<gendsa>
69 to attempt to obtain a functional reference to the specified engine,
70 thus initialising it if needed. The engine will then be set as the default
71 for all available algorithms.
72
73 =item B<paramfile>
74
75 This option specifies the DSA parameter file to use. The parameters in this
76 file determine the size of the private key. DSA parameters can be generated
77 and examined using the B<openssl dsaparam> command.
78
79 =back
80
81 =head1 NOTES
82
83 DSA key generation is little more than random number generation so it is
84 much quicker that RSA key generation for example.
85
86 =head1 SEE ALSO
87
88 L<dsaparam(1)>, L<dsa(1)>, L<genrsa(1)>,
89 L<rsa(1)>
90
91 =head1 COPYRIGHT
92
93 Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.
94
95 Licensed under the OpenSSL license (the "License").  You may not use
96 this file except in compliance with the License.  You can obtain a copy
97 in the file LICENSE in the source distribution or at
98 L<https://www.openssl.org/source/license.html>.
99
100 =cut