openssl-gendsa1ssl
Generate a dsa private key from a set of parameters
Usage
openssl gendsa
[-help]
[-out
filename]
[-passout
arg]
[-aes128]
[-aes192]
[-aes256]
[-aria128]
[-aria192]
[-aria256]
[-camellia128]
[-camellia192]
[-camellia256]
[-des]
[-des3]
[-idea]
[-verbose]
[-quiet]
[-rand
files]
[-writerand
file]
[-engine
id]
[-provider
name]
[-provider-path
path]
[-provparam
[name:]
key=value]
[-propquery
propq]
[paramfile]
Overview
This command generates a DSA private key from a DSA parameter file (which will be typically generated by the openssl-dsaparam(1) command).
Options
-
-help -
Print out a usage message.
-
-out filename -
Output the key to the specified file. If this argument is not specified then standard output is used.
-
-passout arg -
The passphrase used for the output file. See openssl-passphrase-options(1).
-
-aes128, -aes192, -aes256, -aria128, -aria192, -aria256, -camellia128, -camellia192, -camellia256, -des, -des3, -idea -
These options encrypt the private key with specified cipher before outputting it. A pass phrase is prompted for. If none of these options is specified no encryption is used.
Note that all options must be given before the paramfile argument.
-
-verbose -
Print extra details about the operations being performed.
-
-quiet -
Print fewer details about the operations being performed, which may be handy during batch scripts and pipelines.
-
-rand files, -writerand file -
See "Random State Options" in openssl(1) for details.
-
-engine id -
See "Engine Options" in openssl(1). This option is deprecated.
- paramfile
-
The DSA parameter file to use. The parameters in this file determine the size of the private key. DSA parameters can be generated and examined using the openssl-dsaparam(1) command.
-
-provider name
-
-provider-path path
-
-provparam [name:]key=value
-
-propquery propq -
See "Provider Options" in openssl(1), provider(7), and property(7).
Notes
DSA key generation is little more than random number generation so it is much quicker that RSA key generation for example.
Releases
6 releases since Debian 9 (Stretch); the text changed 5 times.
-aes128 since Debian 10 (Buster);
-aes192 since Debian 10 (Buster);
-aes256 since Debian 10 (Buster);
-aria128 since Debian 10 (Buster);
-aria192 since Debian 10 (Buster);
-aria256 since Debian 10 (Buster);
-camellia128 since Debian 10 (Buster);
-camellia192 since Debian 10 (Buster);
-camellia256 since Debian 10 (Buster);
-des since Debian 10 (Buster);
-des3 since Debian 10 (Buster);
-idea since Debian 10 (Buster);
-passout since Debian 12 (Bookworm);
-propquery since Debian 12 (Bookworm);
-provider since Debian 12 (Bookworm);
-provider-path since Debian 12 (Bookworm);
-provparam since Debian 13 (Trixie);
-quiet since Debian 13 (Trixie);
-verbose since Debian 12 (Bookworm);
-writerand since Debian 12 (Bookworm).