openssl - OpenSSL command line tool
openssl command [ command_opts ] [ command_args ]
openssl [ list-standard-commands | list-message-digest-commands | list-cipher-commands ]
Cryptography toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) network protocols and related cryptography standards required by them.
Uses various cryptography functions crypto library to:
- Creation of key parameters for RSA, DH and DSA
- Creation of X.509 certificates, CSRs and CRLs
- Calculation of Message Digests
- Encryption and Decryption with Ciphers
- SSL/TLS Client and Server Tests
- Handling of S/MIME signed or encrypted mail
Enters command mode prompting with
OPENSSL> if no options are give.
no-command tests if a command is available returns 0 (success, i.e. "Yes, no command like that is available") and prints
no-command; otherwise it returns 1 and prints
Since for each cipher there is a command
of the same name, this provides an easy way for shell scripts to test for the availability of ciphers.
(no-command is not able to detect pseudo-commands such as
quit, list-…-commands .)
> openssl no-speed
> echo $?
> openssl no-x509
> openssl no-x508
> echo $?
|Parse an ASN.1 sequence.
|Certificate Authority (CA) Management.
| Cipher Suite Description Determination.
| Certificate Revocation List (CRL) Management.
| CRL to PKCS#7 Conversion.
|Message Digest Calculation.
| Diffie-Hellman Parameter Management. Obsoleted by dhparam.
| DSA Data Management.
| DSA Parameter Generation.
| Encoding with Ciphers.
| Error Number to Error String Conversion.
| Generation and Management of Diffie-Hellman Parameters.
| Generation of Diffie-Hellman Parameters. Obsoleted by dhparam.
| Generation of DSA Parameters.
| Generation of RSA Parameters.
| Online Certificate Status Protocol utility.
| Generation of hashed passwords.
| PKCS#12 Data Management.
| PKCS#7 Data Management.
| Generate pseudo-random bytes.
| X.509 Certificate Signing Request (CSR) Management.
| RSA Data Management.
| RSA utility for signing, verification, encryption, and decryption.
| generic SSL/TLS client which can establish a transparent connection to a remote server speaking
SSL/TLS. It's intended for testing purposes only and provides only rudimentary interface functionality but internally
uses mostly all functionality of the OpenSSL ssl library.
| generic SSL/TLS server which accepts connections from remote clients speaking SSL/TLS. It's intended
for testing purposes only and provides only rudimentary interface functionality but internally uses mostly all functionality of the OpenSSL ssl library. It provides both an own command line oriented protocol for testing SSL functions and a simple HTTP response facility to emulate an SSL/TLS-aware webserver.
|SSL Connection Timer.
| SSL Session Data Management.
| S/MIME mail processing.
| Algorithm Speed Measurement. sample output
| OpenSSL Version Information. (6/4/12 on Mac OS X |
OpenSSL 0.9.8r 8 Feb 2011)
| X.509 Certificate Verification.
| X.509 Certificate Data Management.
Message digest commands
md2 md5 mdc2 rmd160 sha sha1 sha224 sha256 sha384 sha512
Encoding and cipher commands
enc command for more details
Base64 Encoding base64
Blowfish bf bf-cbc bf-cfb bf-ecb bf-ofb
CAST cast cast-cbc
CAST5 cast5-cbc cast5-cfb cast5-ecb cast5-ofb
DES des des-cbc des-cfb des-ecb des-ede des-ede-cbc des-ede-cfb des-ede-ofb des-ofb
Triple-DES des3 desx des-ede3 des-ede3-cbc des-ede3-cfb des-ede3-ofb
IDEA idea idea-cbc idea-cfb idea-ecb idea-ofb
RC2 rc2 rc2-cbc rc2-cfb rc2-ecb rc2-ofb
RC5 rc5 rc5-cbc rc5-cfb rc5-ecb rc5-ofb
Pass Phrase arguments
-passout are used for input and output passwords .
allowing the password to be obtained from a variety of sources. a single argument .
If a password is required but not provided the user is prompted to enter one,
typically from the terminal without echoing
the actual password is |
password. Since the password is visible to utilities (like
ps ) this form should be avoided.
| obtain the password from the environment variable |
var. Since the environment of other processes is visible on certain
ps ) this option should be used with caution.
the first line of |
pathname is the password.
If the same pathname argument is supplied to
-passout the first line will be used for the input password and the next line for the output password.
pathname may refer to a device or named pipe.
|read the password from the file descriptor n, used to send the data via a pipe
Generate MD5 checksum example:
> openssl dgst kav_rescue_10.iso
Message Digest commands
(see the `dgst' command for more details)
md2 md4 md5 rmd160 sha sha1