# openssl-dsaparam(1ssl) - man - phpman

[OPENSSL-DSAPARAM(1SSL)](https://www.chedong.com/phpMan.php/man/OPENSSL-DSAPARAM/1SSL/markdown)                         OpenSSL                        [OPENSSL-DSAPARAM(1SSL)](https://www.chedong.com/phpMan.php/man/OPENSSL-DSAPARAM/1SSL/markdown)



## NAME
       openssl-dsaparam - DSA parameter manipulation and generation

## SYNOPSIS
       **openssl** **dsaparam** [**-help**] [**-inform** **DER**|**PEM**] [**-outform** **DER**|**PEM**] [**-in** _filename_] [**-out** _filename_]
       [**-noout**] [**-text**] [**-genkey**] [**-verbose**] [**-rand** _files_] [**-writerand** _file_] [**-engine** _id_] [**-provider**
       _name_] [**-provider-path** _path_] [**-propquery** _propq_] [_numbits_]

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

       DSA parameter generation can be a slow process and as a result the same set of DSA parameters
       is often used to generate several distinct keys.

## OPTIONS
### -help
           Print out a usage message.

### -inform
           The DSA parameters input format; unspecified by default.  See [**openssl-format-options**(1)](https://www.chedong.com/phpMan.php/man/openssl-format-options/1/markdown)
           for details.

### -outform
           The DSA parameters output format; the default is **PEM**.  See [**openssl-format-options**(1)](https://www.chedong.com/phpMan.php/man/openssl-format-options/1/markdown) for
           details.

           Parameters are a sequence of **ASN.1** **INTEGER**s: **p**, **q**, and **g**.  This is compatible with RFC
           2459 **DSS-Parms** structure.

### -in
           This specifies the input filename to read parameters from or standard input if this
           option is not specified. If the _numbits_ parameter is included then this option will be
           ignored.

### -out
           This specifies the output filename parameters to. Standard output is used if this option
           is not present. The output filename should **not** be the same as the input filename.

### -noout
           This option inhibits the output of the encoded version of the parameters.

### -text
           This option prints out the DSA parameters in human readable form.

### -genkey
           This option will generate a DSA either using the specified or generated parameters.

### -verbose
           Print extra details about the operations being performed.

### -rand -writerand
           See "Random State Options" in [**openssl**(1)](https://www.chedong.com/phpMan.php/man/openssl/1/markdown) for details.

### -engine
           See "Engine Options" in [**openssl**(1)](https://www.chedong.com/phpMan.php/man/openssl/1/markdown).  This option is deprecated.

       _numbits_
           This option specifies that a parameter set should be generated of size _numbits_. It must
           be the last option. If this option is included then the input file (if any) is ignored.

### -provider
### -provider-path
### -propquery
           See "Provider Options" in [**openssl**(1)](https://www.chedong.com/phpMan.php/man/openssl/1/markdown), [**provider**(7)](https://www.chedong.com/phpMan.php/man/provider/7/markdown), and [**property**(7)](https://www.chedong.com/phpMan.php/man/property/7/markdown).

## SEE ALSO
       [**openssl**(1)](https://www.chedong.com/phpMan.php/man/openssl/1/markdown), [**openssl-pkeyparam**(1)](https://www.chedong.com/phpMan.php/man/openssl-pkeyparam/1/markdown), [**openssl-gendsa**(1)](https://www.chedong.com/phpMan.php/man/openssl-gendsa/1/markdown), [**openssl-dsa**(1)](https://www.chedong.com/phpMan.php/man/openssl-dsa/1/markdown), [**openssl-genrsa**(1)](https://www.chedong.com/phpMan.php/man/openssl-genrsa/1/markdown),
       [**openssl-rsa**(1)](https://www.chedong.com/phpMan.php/man/openssl-rsa/1/markdown)

## HISTORY
       The **-engine** option was deprecated in OpenSSL 3.0.

       The **-C** option was removed in OpenSSL 3.0.

## COPYRIGHT
       Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.

       Licensed under the Apache License 2.0 (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 <<https://www.openssl.org/source/license.html>>.



3.0.2                                        2026-04-07                       [OPENSSL-DSAPARAM(1SSL)](https://www.chedong.com/phpMan.php/man/OPENSSL-DSAPARAM/1SSL/markdown)
