]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/man1/gendsa.pod
openssl dgst, openssl enc: check for end of input
[thirdparty/openssl.git] / doc / man1 / gendsa.pod
CommitLineData
aba3e65f
DSH
1=pod
2
3=head1 NAME
4
3f2181e6 5openssl-gendsa,
aba3e65f
DSH
6gendsa - generate a DSA private key from a set of parameters
7
8=head1 SYNOPSIS
9
10B<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
33The 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
42Print out a usage message.
43
44=item B<-out filename>
45
46Output the key to the specified file. If this argument is not specified then
47standard 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
51These options encrypt the private key with specified
52cipher before outputting it. A pass phrase is prompted for.
aba3e65f
DSH
53If none of these options is specified no encryption is used.
54
3ee1eac2 55=item B<-rand file...>
aba3e65f 56
c4de074e 57A file or files containing random data used to seed the random number
3ee1eac2 58generator.
35ed393e 59Multiple files can be specified separated by an OS-dependent character.
b87ef946 60The separator is B<;> for MS-Windows, B<,> for OpenVMS, and B<:> for
a4cfd178 61all others.
aba3e65f 62
3ee1eac2
RS
63=item [B<-writerand file>]
64
65Writes random data to the specified I<file> upon exit.
66This can be used with a subsequent B<-rand> flag.
67
bfa35550
RL
68=item B<-engine id>
69
c4de074e 70Specifying an engine (by its unique B<id> string) will cause B<gendsa>
bfa35550
RL
71to attempt to obtain a functional reference to the specified engine,
72thus initialising it if needed. The engine will then be set as the default
73for all available algorithms.
74
b6a07f67
PP
75=item B<-verbose>
76
77Print extra details about the operations being performed.
78
aba3e65f
DSH
79=item B<paramfile>
80
81This option specifies the DSA parameter file to use. The parameters in this
82file determine the size of the private key. DSA parameters can be generated
83and examined using the B<openssl dsaparam> command.
84
85=back
86
87=head1 NOTES
88
89DSA key generation is little more than random number generation so it is
90much quicker that RSA key generation for example.
91
92=head1 SEE ALSO
93
9b86974e
RS
94L<dsaparam(1)>, L<dsa(1)>, L<genrsa(1)>,
95L<rsa(1)>
aba3e65f 96
e2f92610
RS
97=head1 COPYRIGHT
98
1212818e 99Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
e2f92610 100
449040b4 101Licensed under the Apache License 2.0 (the "License"). You may not use
e2f92610
RS
102this file except in compliance with the License. You can obtain a copy
103in the file LICENSE in the source distribution or at
104L<https://www.openssl.org/source/license.html>.
105
106=cut