skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 2:... HP Open Source Security for OpenVMS Volume 2:...
go to beginning of reference: OpenSSL Command Line Interface (CLI) Reference OpenSSL Command Line Interface (CLI) Reference
go to previous page: dhparam dhparam
go to next page: dsaparamdsaparam
end of book navigation links


dsa
Description
Notes
See Also
 Command Options
Examples

NAME

dsa - DSA key processing

Synopsis  

openssl dsa [-inform PEM|DER] [-outform PEM|DER] [-in filename] [-passin arg] [-out filename] [-passout arg] [-des] [-des3] [-idea] [-text] [-noout] [-modulus] [-pubin] [-pubout] [-engine id]


return to top 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.


return to top COMMAND OPTIONS  


return to top 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-----


return to top 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


return to top SEE ALSO  

dsaparam(1) , gendsa(1) , rsa(1) , genrsa(1)
go to previous page: dhparam dhparam
go to next page: dsaparamdsaparam