NAME

openssl-dsa, dsa - DSA key processing

SYNOPSIS

openssl dsa [-help] [-inform PEM|DER] [-outform PEM|DER] [-in filename] [-passin arg] [-out filename] [-passout arg] [-aes128] [-aes192] [-aes256] [-aria128] [-aria192] [-aria256] [-camellia128] [-camellia192] [-camellia256] [-des] [-des3] [-idea] [-text] [-noout] [-modulus] [-pubin] [-pubout] [-engine id]

DESCRIPTION

The dsa command processes DSA 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

OPTIONS

NOTES

The PEM private key format uses the header and footer lines:

-----BEGIN DSA PRIVATE KEY----- -----END DSA PRIVATE KEY-----

The PEM public key format uses the header and footer lines:

-----BEGIN PUBLIC KEY----- -----END PUBLIC KEY-----

EXAMPLES

To remove the pass phrase on a DSA private key:

openssl dsa -in key.pem -out keyout.pem

To encrypt a private key using triple DES:

openssl dsa -in key.pem -des3 -out keyout.pem

To convert a private key from PEM to DER format:

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

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

openssl dsa -in key.pem -text -noout

To just output the public part of a private key:

openssl dsa -in key.pem -pubout -out pubkey.pem

SEE ALSO

dsaparam (1), gendsa (1), rsa (1), genrsa (1)

COPYRIGHT

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

Licensed under the OpenSSL license (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>.