dsaparam.pod 3.1 KB
Newer Older
1
=pod
U
Ulf Möller 已提交
2

3 4 5 6 7 8 9
=head1 NAME

dsaparam - DSA parameter manipulation and generation

=head1 SYNOPSIS

B<openssl dsaparam>
10
[B<-help>]
11 12 13 14 15 16 17
[B<-inform DER|PEM>]
[B<-outform DER|PEM>]
[B<-in filename>]
[B<-out filename>]
[B<-noout>]
[B<-text>]
[B<-C>]
18
[B<-rand file(s)>]
19
[B<-genkey>]
20
[B<-engine id>]
21 22 23 24 25 26 27 28 29 30
[B<numbits>]

=head1 DESCRIPTION

This command is used to manipulate or generate DSA parameter files.

=head1 OPTIONS

=over 4

31 32 33 34
=item B<-help>

Print out a usage message.

35 36 37 38 39 40 41 42 43
=item B<-inform DER|PEM>

This specifies the input format. The B<DER> option uses an ASN1 DER encoded
form compatible with RFC2459 (PKIX) DSS-Parms that is a SEQUENCE consisting
of p, q and g respectively. The PEM form is the default format: it consists
of the B<DER> format base64 encoded with additional header and footer lines.

=item B<-outform DER|PEM>

R
Rich Salz 已提交
44
This specifies the output format, the options have the same meaning as the
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
B<-inform> option.

=item B<-in filename>

This specifies the input filename to read parameters from or standard input if
this option is not specified. If the B<numbits> parameter is included then
this option will be ignored.

=item B<-out filename>

This specifies the output filename parameters to. Standard output is used
if this option is not present. The output filename should B<not> be the same
as the input filename.

=item B<-noout>

P
Pauli 已提交
61
This option inhibits the output of the encoded version of the parameters.
62 63 64

=item B<-text>

P
Pauli 已提交
65
This option prints out the DSA parameters in human readable form.
66 67 68

=item B<-C>

P
Pauli 已提交
69
This option converts the parameters into C code. The parameters can then
R
Rich Salz 已提交
70
be loaded by calling the get_dsaXXX() function.
71 72 73

=item B<-genkey>

P
Pauli 已提交
74
This option will generate a DSA either using the specified or generated
75 76
parameters.

77
=item B<-rand file(s)>
78

P
Pauli 已提交
79
A file or files containing random data used to seed the random number
R
Rich Salz 已提交
80
generator, or an EGD socket (see L<RAND_egd(3)>).
A
Alex Gaynor 已提交
81
Multiple files can be specified separated by an OS-dependent character.
R
Richard Levitte 已提交
82
The separator is B<;> for MS-Windows, B<,> for OpenVMS, and B<:> for
U
Ulf Möller 已提交
83
all others.
84 85 86

=item B<numbits>

P
Pauli 已提交
87
This option specifies that a parameter set should be generated of size
88 89 90
B<numbits>. It must be the last option. If this option is included then
the input file (if any) is ignored.

91 92
=item B<-engine id>

P
Pauli 已提交
93
Specifying an engine (by its unique B<id> string) will cause B<dsaparam>
94 95 96 97
to attempt to obtain a functional reference to the specified engine,
thus initialising it if needed. The engine will then be set as the default
for all available algorithms.

98 99 100 101
=back

=head1 NOTES

102 103 104 105 106
PEM format DSA parameters use the header and footer lines:

 -----BEGIN DSA PARAMETERS-----
 -----END DSA PARAMETERS-----

107 108 109 110 111
DSA parameter generation is a slow process and as a result the same set of
DSA parameters is often used to generate several distinct keys.

=head1 SEE ALSO

R
Rich Salz 已提交
112 113
L<gendsa(1)>, L<dsa(1)>, L<genrsa(1)>,
L<rsa(1)>
114

R
Rich Salz 已提交
115 116
=head1 COPYRIGHT

P
Pauli 已提交
117
Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.
R
Rich Salz 已提交
118 119 120 121 122 123 124

Licensed under the OpenSSL license (the "License").  You may not use
this file except in compliance with the License.  You can obtain a copy
in the file LICENSE in the source distribution or at
L<https://www.openssl.org/source/license.html>.

=cut