Linux "dsaparam" Command Line Options and Examples
DSA parameter manipulation and generation

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


openssl dsaparam [-help] [-inform DER|PEM] [-outform DER|PEM] [-in filename] [-out filename] [-noout] [-text] [-C] [-rand file(s)]
    [-genkey] [-engine id] [numbits]

Command Line Options:

Print out a usage message.
dsaparam -help ...
This specifies the input format. The DER option uses an ASN1 DER encoded form compatible with RFC2459 (PKIX) DSS-Parms that is aSEQUENCE consisting of p, q and g respectively. The PEM form is the default format: it consists of the DER format base64 encodedwith additional header and footer lines.
dsaparam -inform ...
This specifies the output format, the options have the same meaning as the -inform option.
dsaparam -outform ...
This specifies the input filename to read parameters from or standard input if this option is not specified. If the numbitsparameter is included then this option will be ignored.
dsaparam -in ...
This specifies the output filename parameters to. Standard output is used if this option is not present. The output filenameshould not be the same as the input filename.
dsaparam -out ...
this option inhibits the output of the encoded version of the parameters.
dsaparam -noout ...
this option prints out the DSA parameters in human readable form.
dsaparam -text ...
this option converts the parameters into C code. The parameters can then be loaded by calling the get_dsaXXX() function.
dsaparam -C ...
this option will generate a DSA either using the specified or generated parameters.
dsaparam -genkey ...
a file or files containing random data used to seed the random number generator, or an EGD socket (see RAND_egd(3)). Multiplefiles can be specified separated by an OS-dependent character. The separator is ; for MS-Windows, , for OpenVMS, and : for allothers.numbitsthis option specifies that a parameter set should be generated of size numbits. It must be the last option. If this option isincluded then the input file (if any) is ignored.
dsaparam -rand ...
specifying an engine (by its unique id string) will cause dsaparam to attempt to obtain a functional reference to the specifiedengine, thus initialising it if needed. The engine will then be set as the default for all available algorithms.NOTESPEM format DSA parameters use the header and footer lines:
dsaparam -engine ...