1DSAPARAM(1) OpenSSL DSAPARAM(1)
2
3
4
6 dsaparam - DSA parameter manipulation and generation
7
9 openssl dsaparam [-inform DER⎪PEM] [-outform DER⎪PEM] [-in filename]
10 [-out filename] [-noout] [-text] [-C] [-rand file(s)] [-genkey]
11 [-engine id] [numbits]
12
14 This command is used to manipulate or generate DSA parameter files.
15
17 -inform DER⎪PEM
18 This specifies the input format. The DER option uses an ASN1 DER
19 encoded form compatible with RFC2459 (PKIX) DSS-Parms that is a
20 SEQUENCE consisting of p, q and g respectively. The PEM form is the
21 default format: it consists of the DER format base64 encoded with
22 additional header and footer lines.
23
24 -outform DER⎪PEM
25 This specifies the output format, the options have the same meaning
26 as the -inform option.
27
28 -in filename
29 This specifies the input filename to read parameters from or stan‐
30 dard input if this option is not specified. If the numbits parame‐
31 ter is included then this option will be ignored.
32
33 -out filename
34 This specifies the output filename parameters to. Standard output
35 is used if this option is not present. The output filename should
36 not be the same as the input filename.
37
38 -noout
39 this option inhibits the output of the encoded version of the
40 parameters.
41
42 -text
43 this option prints out the DSA parameters in human readable form.
44
45 -C this option converts the parameters into C code. The parameters can
46 then be loaded by calling the get_dsaXXX() function.
47
48 -genkey
49 this option will generate a DSA either using the specified or gen‐
50 erated parameters.
51
52 -rand file(s)
53 a file or files containing random data used to seed the random num‐
54 ber generator, or an EGD socket (see RAND_egd(3)). Multiple files
55 can be specified separated by a OS-dependent character. The sepa‐
56 rator is ; for MS-Windows, , for OpenVMS, and : for all others.
57
58 numbits
59 this option specifies that a parameter set should be generated of
60 size numbits. It must be the last option. If this option is
61 included then the input file (if any) is ignored.
62
63 -engine id
64 specifying an engine (by it's unique id string) will cause req to
65 attempt to obtain a functional reference to the specified engine,
66 thus initialising it if needed. The engine will then be set as the
67 default for all available algorithms.
68
70 PEM format DSA parameters use the header and footer lines:
71
72 -----BEGIN DSA PARAMETERS-----
73 -----END DSA PARAMETERS-----
74
75 DSA parameter generation is a slow process and as a result the same set
76 of DSA parameters is often used to generate several distinct keys.
77
79 gendsa(1), dsa(1), genrsa(1), rsa(1)
80
81
82
830.9.8b 2003-01-30 DSAPARAM(1)