evp_pkey_ctx_free_old_ops(): Make sure to assign NULL to freed pointers
[openssl.git] / doc / man1 / openssl-dsaparam.pod
1 =pod
2
3 =head1 NAME
4
5 openssl-dsaparam - DSA parameter manipulation and generation
6
7 =head1 SYNOPSIS
8
9 B<openssl dsaparam>
10 [B<-help>]
11 [B<-inform> B<DER>|B<PEM>]
12 [B<-outform> B<DER>|B<PEM>]
13 [B<-in> I<filename>]
14 [B<-out> I<filename>]
15 [B<-noout>]
16 [B<-text>]
17 [B<-C>]
18 [B<-rand> I<files>]
19 [B<-writerand> I<file>]
20 [B<-genkey>]
21 [B<-engine> I<id>]
22 [B<-verbose>]
23 [I<numbits>]
24
25 =head1 DESCRIPTION
26
27 This command is used to manipulate or generate DSA parameter files.
28
29 DSA parameter generation can be a slow process and as a result the same set of
30 DSA parameters is often used to generate several distinct keys.
31
32 =head1 OPTIONS
33
34 =over 4
35
36 =item B<-help>
37
38 Print out a usage message.
39
40 =item B<-inform> B<DER>|B<PEM>, B<-outform> B<DER>|B<PEM>
41
42 The input and formats; the default is B<PEM>.
43 See L<openssl(1)/Format Options> for details.
44
45 Parameters are a sequence of B<ASN.1 INTEGER>s: B<p>, B<q>, and B<g>.
46 This is compatible with RFC 2459 B<DSS-Parms> structure.
47
48 =item B<-in> I<filename>
49
50 This specifies the input filename to read parameters from or standard input if
51 this option is not specified. If the I<numbits> parameter is included then
52 this option will be ignored.
53
54 =item B<-out> I<filename>
55
56 This specifies the output filename parameters to. Standard output is used
57 if this option is not present. The output filename should B<not> be the same
58 as the input filename.
59
60 =item B<-noout>
61
62 This option inhibits the output of the encoded version of the parameters.
63
64 =item B<-text>
65
66 This option prints out the DSA parameters in human readable form.
67
68 =item B<-C>
69
70 This option converts the parameters into C code. The parameters can then
71 be loaded by calling the get_dsaXXX() function.
72
73 =item B<-genkey>
74
75 This option will generate a DSA either using the specified or generated
76 parameters.
77
78 =item B<-rand> I<files>, B<-writerand> I<file>
79
80 See L<openssl(1)/Random State Options> for more information.
81
82 =item B<-engine> I<id>
83
84 Specifying an engine (by its unique I<id> string) will cause this command
85 to attempt to obtain a functional reference to the specified engine,
86 thus initialising it if needed. The engine will then be set as the default
87 for all available algorithms.
88
89 =item B<-verbose>
90
91 Print extra details about the operations being performed.
92
93 =item I<numbits>
94
95 This option specifies that a parameter set should be generated of size
96 I<numbits>. It must be the last option. If this option is included then
97 the input file (if any) is ignored.
98
99 =back
100
101 =head1 SEE ALSO
102
103 L<openssl(1)>,
104 L<openssl-gendsa(1)>,
105 L<openssl-dsa(1)>,
106 L<openssl-genrsa(1)>,
107 L<openssl-rsa(1)>
108
109 =head1 COPYRIGHT
110
111 Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
112
113 Licensed under the Apache License 2.0 (the "License").  You may not use
114 this file except in compliance with the License.  You can obtain a copy
115 in the file LICENSE in the source distribution or at
116 L<https://www.openssl.org/source/license.html>.
117
118 =cut