dsa.1 revision 296465
Automatically generated by Pod::Man 2.28 (Pod::Simple 3.28)

Standard preamble:
========================================================================
..
..
.. Set up some character translations and predefined strings. \*(-- will
give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
double quote, and \*(R" will give a right double quote. \*(C+ will
give a nicer C++. Capital omega is used to do unbreakable dashes and
therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
nothing in troff, for use with C<>.
.tr \(*W- . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\}
Escape single quotes in literal strings from groff's Unicode transform.

If the F register is turned on, we'll generate index entries on stderr for
titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
entries marked with X<> in POD. Of course, you'll have to process the
output yourself in some meaningful fashion.

Avoid warning from groff about undefined register 'F'.
.. .nr rF 0 . if \nF \{ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{ . nr % 0 . nr F 2 . \} . \} .\} .rr rF
Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
Fear. Run. Save yourself. No user-serviceable parts.
. \" fudge factors for nroff and troff . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] .\} . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents . \" corrections for vroff . \" for low resolution devices (crt and lpr) \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} ========================================================================

Title "DSA 1"
DSA 1 "2015-12-03" "0.9.8zh" "OpenSSL"
For nroff, turn off justification. Always turn off hyphenation; it makes
way too many mistakes in technical documents.
"NAME"
dsa - DSA key processing
"SYNOPSIS"
Header "SYNOPSIS" \fBopenssl dsa [-inform PEM|DER] [-outform PEM|DER] [-in filename] [-passin arg] [-out filename] [-passout arg] [-aes128] [-aes192] [-aes256] [-camellia128] [-camellia192] [-camellia256] [-des] [-des3] [-idea] [-text] [-noout] [-modulus] [-pubin] [-pubout] [-engine id]
"DESCRIPTION"
Header "DESCRIPTION" The dsa command processes \s-1DSA\s0 keys. They can be converted between various forms and their components printed out. Note This command uses the traditional SSLeay compatible format for private key encryption: newer applications should use the more secure PKCS#8 format using the pkcs8
"COMMAND OPTIONS"
Header "COMMAND OPTIONS"
"-inform DER|PEM" 4
Item "-inform DER|PEM" This specifies the input format. The \s-1DER\s0 option with a private key uses an \s-1ASN1 DER\s0 encoded form of an \s-1ASN.1 SEQUENCE\s0 consisting of the values of version (currently zero), p, q, g, the public and private key components respectively as \s-1ASN.1\s0 INTEGERs. When used with a public key it uses a SubjectPublicKeyInfo structure: it is an error if the key is not \s-1DSA.\s0 .Sp The \s-1PEM\s0 form is the default format: it consists of the \s-1DER\s0 format base64 encoded with additional header and footer lines. In the case of a private key PKCS#8 format is also accepted.
"-outform DER|PEM" 4
Item "-outform DER|PEM" This specifies the output format, the options have the same meaning as the \fB-inform option.
"-in filename" 4
Item "-in filename" This specifies the input filename to read a key from or standard input if this option is not specified. If the key is encrypted a pass phrase will be prompted for.
"-passin arg" 4
Item "-passin arg" the input file password source. For more information about the format of arg see the \s-1PASS PHRASE ARGUMENTS\s0 section in openssl\|(1).
"-out filename" 4
Item "-out filename" This specifies the output filename to write a key to or standard output by is not specified. If any encryption options are set then a pass phrase will be prompted for. The output filename should not be the same as the input filename.
"-passout arg" 4
Item "-passout arg" the output file password source. For more information about the format of arg see the \s-1PASS PHRASE ARGUMENTS\s0 section in openssl\|(1).
"-aes128|-aes192|-aes256|-camellia128|-camellia192|-camellia256|-des|-des3|-idea" 4
Item "-aes128|-aes192|-aes256|-camellia128|-camellia192|-camellia256|-des|-des3|-idea" These options encrypt the private key with the specified cipher before outputting it. A pass phrase is prompted for. If none of these options is specified the key is written in plain text. This means that using the dsa utility to read in an encrypted key with no encryption option can be used to remove the pass phrase from a key, or by setting the encryption options it can be use to add or change the pass phrase. These options can only be used with \s-1PEM\s0 format output files.
"-text" 4
Item "-text" prints out the public, private key components and parameters.
"-noout" 4
Item "-noout" this option prevents output of the encoded version of the key.
"-modulus" 4
Item "-modulus" this option prints out the value of the public key component of the key.
"-pubin" 4
Item "-pubin" by default a private key is read from the input file: with this option a public key is read instead.
"-pubout" 4
Item "-pubout" by default a private key is output. With this option a public key will be output instead. This option is automatically set if the input is a public key.
"-engine id" 4
Item "-engine id" specifying an engine (by it's unique id string) will cause req to attempt to obtain a functional reference to the specified engine, thus initialising it if needed. The engine will then be set as the default for all available algorithms.
"NOTES"
Header "NOTES" The \s-1PEM\s0 private key format uses the header and footer lines:

.Vb 2 -----BEGIN DSA PRIVATE KEY----- -----END DSA PRIVATE KEY----- .Ve

The \s-1PEM\s0 public key format uses the header and footer lines:

.Vb 2 -----BEGIN PUBLIC KEY----- -----END PUBLIC KEY----- .Ve

"EXAMPLES"
Header "EXAMPLES" To remove the pass phrase on a \s-1DSA\s0 private key:

.Vb 1 openssl dsa -in key.pem -out keyout.pem .Ve

To encrypt a private key using triple \s-1DES:\s0

.Vb 1 openssl dsa -in key.pem -des3 -out keyout.pem .Ve

To convert a private key from \s-1PEM\s0 to \s-1DER\s0 format:

.Vb 1 openssl dsa -in key.pem -outform DER -out keyout.der .Ve

To print out the components of a private key to standard output:

.Vb 1 openssl dsa -in key.pem -text -noout .Ve

To just output the public part of a private key:

.Vb 1 openssl dsa -in key.pem -pubout -out pubkey.pem .Ve

"SEE ALSO"
Header "SEE ALSO" \fIdsaparam\|(1), gendsa\|(1), rsa\|(1), \fIgenrsa\|(1)