1DSAPARAM(1) OpenSSL DSAPARAM(1)
2
3
4
6 openssl-dsaparam, dsaparam - DSA parameter manipulation and generation
7
9 openssl dsaparam [-help] [-inform DER|PEM] [-outform DER|PEM] [-in
10 filename] [-out filename] [-noout] [-text] [-C] [-rand file...]
11 [-writerand file] [-genkey] [-engine id] [numbits]
12
14 This command is used to manipulate or generate DSA parameter files.
15
17 -help
18 Print out a usage message.
19
20 -inform DER|PEM
21 This specifies the input format. The DER option uses an ASN1 DER
22 encoded form compatible with RFC2459 (PKIX) DSS-Parms that is a
23 SEQUENCE consisting of p, q and g respectively. The PEM form is the
24 default format: it consists of the DER format base64 encoded with
25 additional header and footer lines.
26
27 -outform DER|PEM
28 This specifies the output format, the options have the same meaning
29 and default as the -inform option.
30
31 -in filename
32 This specifies the input filename to read parameters from or
33 standard input if this option is not specified. If the numbits
34 parameter is included then this option will be ignored.
35
36 -out filename
37 This specifies the output filename parameters to. Standard output
38 is used if this option is not present. The output filename should
39 not be the same as the input filename.
40
41 -noout
42 This option inhibits the output of the encoded version of the
43 parameters.
44
45 -text
46 This option prints out the DSA parameters in human readable form.
47
48 -C This option converts the parameters into C code. The parameters can
49 then be loaded by calling the get_dsaXXX() function.
50
51 -genkey
52 This option will generate a DSA either using the specified or
53 generated parameters.
54
55 -rand file...
56 A file or files containing random data used to seed the random
57 number generator. Multiple files can be specified separated by an
58 OS-dependent character. The separator is ; for MS-Windows, , for
59 OpenVMS, and : for all others.
60
61 [-writerand file]
62 Writes random data to the specified file upon exit. This can be
63 used with a subsequent -rand flag.
64
65 numbits
66 This option specifies that a parameter set should be generated of
67 size numbits. It must be the last option. If this option is
68 included then the input file (if any) is ignored.
69
70 -engine id
71 Specifying an engine (by its unique id string) will cause dsaparam
72 to attempt to obtain a functional reference to the specified
73 engine, thus initialising it if needed. The engine will then be set
74 as the default for all available algorithms.
75
77 PEM format DSA parameters use the header and footer lines:
78
79 -----BEGIN DSA PARAMETERS-----
80 -----END DSA PARAMETERS-----
81
82 DSA parameter generation is a slow process and as a result the same set
83 of DSA parameters is often used to generate several distinct keys.
84
86 gendsa(1), dsa(1), genrsa(1), rsa(1)
87
89 Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.
90
91 Licensed under the OpenSSL license (the "License"). You may not use
92 this file except in compliance with the License. You can obtain a copy
93 in the file LICENSE in the source distribution or at
94 <https://www.openssl.org/source/license.html>.
95
96
97
981.1.1c 2019-05-28 DSAPARAM(1)