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