xref: /freebsd/secure/usr.bin/openssl/man/openssl.1 (revision acc1a9ef8333c798c210fa94be6af4d5fe2dd794)
Automatically generated by Pod::Man 2.28 (Pod::Simple 3.30)

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 "OPENSSL 1"
OPENSSL 1 "2016-03-01" "1.0.2g" "OpenSSL"
For nroff, turn off justification. Always turn off hyphenation; it makes
way too many mistakes in technical documents.
"NAME"
openssl - OpenSSL command line tool
"SYNOPSIS"
Header "SYNOPSIS" \fBopenssl \fIcommand [ command_opts ] [ command_args ]

\fBopenssl [ list-standard-commands | list-message-digest-commands | list-cipher-commands | list-cipher-algorithms | list-message-digest-algorithms | list-public-key-algorithms]

\fBopenssl no-\s-1XXX\s0 [ arbitrary options ]

"DESCRIPTION"
Header "DESCRIPTION" OpenSSL is a cryptography toolkit implementing the Secure Sockets Layer (\s-1SSL\s0 v2/v3) and Transport Layer Security (\s-1TLS\s0 v1) network protocols and related cryptography standards required by them.

The openssl program is a command line tool for using the various cryptography functions of OpenSSL's crypto library from the shell. It can be used for

.Vb 8 o Creation and management of private keys, public keys and parameters o Public key cryptographic operations o Creation of X.509 certificates, CSRs and CRLs o Calculation of Message Digests o Encryption and Decryption with Ciphers o SSL/TLS Client and Server Tests o Handling of S/MIME signed or encrypted mail o Time Stamp requests, generation and verification .Ve

"COMMAND SUMMARY"
Header "COMMAND SUMMARY" The openssl program provides a rich variety of commands (command in the \s-1SYNOPSIS\s0 above), each of which often has a wealth of options and arguments (command_opts and command_args in the \s-1SYNOPSIS\s0).

The pseudo-commands list-standard-commands, list-message-digest-commands, and list-cipher-commands output a list (one entry per line) of the names of all standard commands, message digest commands, or cipher commands, respectively, that are available in the present openssl utility.

The pseudo-commands list-cipher-algorithms and \fBlist-message-digest-algorithms list all cipher and message digest names, one entry per line. Aliases are listed as:

.Vb 1 from => to .Ve

The pseudo-command list-public-key-algorithms lists all supported public key algorithms.

The pseudo-command no-\s-1XXX\s0 tests whether a command of the specified name is available. If no command named \s-1XXX\s0 exists, it returns 0 (success) and prints no-\s-1XXX\s0; otherwise it returns 1 and prints \s-1XXX\s0. In both cases, the output goes to stdout and nothing is printed to stderr. Additional command line arguments are always ignored. 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 in the openssl program. (no-\s-1XXX\s0 is not able to detect pseudo-commands such as quit, \fBlist-...-commands, or no-\s-1XXX\s0 itself.)

"\s-1STANDARD COMMANDS\s0"
Subsection "STANDARD COMMANDS"
"asn1parse" 10
Item "asn1parse" Parse an \s-1ASN.1\s0 sequence.
"ca" 10
Item "ca" Certificate Authority (\s-1CA\s0) Management.
"ciphers" 10
Item "ciphers" Cipher Suite Description Determination.
"cms" 10
Item "cms" \s-1CMS \s0(Cryptographic Message Syntax) utility
"crl" 10
Item "crl" Certificate Revocation List (\s-1CRL\s0) Management.
"crl2pkcs7" 10
Item "crl2pkcs7" \s-1CRL\s0 to PKCS#7 Conversion.
"dgst" 10
Item "dgst" Message Digest Calculation.
"dh" 10
Item "dh" Diffie-Hellman Parameter Management. Obsoleted by dhparam.
"dhparam" 10
Item "dhparam" Generation and Management of Diffie-Hellman Parameters. Superseded by \fBgenpkey and pkeyparam
"dsa" 10
Item "dsa" \s-1DSA\s0 Data Management.
"dsaparam" 10
Item "dsaparam" \s-1DSA\s0 Parameter Generation and Management. Superseded by \fBgenpkey and pkeyparam
"ec" 10
Item "ec" \s-1EC \s0(Elliptic curve) key processing
"ecparam" 10
Item "ecparam" \s-1EC\s0 parameter manipulation and generation
"enc" 10
Item "enc" Encoding with Ciphers.
"engine" 10
Item "engine" Engine (loadble module) information and manipulation.
"errstr" 10
Item "errstr" Error Number to Error String Conversion.
"gendh" 10
Item "gendh" Generation of Diffie-Hellman Parameters. Obsoleted by dhparam.
"gendsa" 10
Item "gendsa" Generation of \s-1DSA\s0 Private Key from Parameters. Superseded by \fBgenpkey and pkey
"genpkey" 10
Item "genpkey" Generation of Private Key or Parameters.
"genrsa" 10
Item "genrsa" Generation of \s-1RSA\s0 Private Key. Superceded by genpkey.
"nseq" 10
Item "nseq" Create or examine a netscape certificate sequence
"ocsp" 10
Item "ocsp" Online Certificate Status Protocol utility.
"passwd" 10
Item "passwd" Generation of hashed passwords.
"pkcs12" 10
Item "pkcs12" PKCS#12 Data Management.
"pkcs7" 10
Item "pkcs7" PKCS#7 Data Management.
"pkey" 10
Item "pkey" Public and private key management.
"pkeyparam" 10
Item "pkeyparam" Public key algorithm parameter management.
"pkeyutl" 10
Item "pkeyutl" Public key algorithm cryptographic operation utility.
"rand" 10
Item "rand" Generate pseudo-random bytes.
"req" 10
Item "req" PKCS#10 X.509 Certificate Signing Request (\s-1CSR\s0) Management.
"rsa" 10
Item "rsa" \s-1RSA\s0 key management.
"rsautl" 10
Item "rsautl" \s-1RSA\s0 utility for signing, verification, encryption, and decryption. Superseded by pkeyutl
"s_client" 10
Item "s_client" This implements a generic \s-1SSL/TLS\s0 client which can establish a transparent connection to a remote server speaking \s-1SSL/TLS.\s0 It's intended for testing purposes only and provides only rudimentary interface functionality but internally uses mostly all functionality of the OpenSSL ssl library.
"s_server" 10
Item "s_server" This implements a generic \s-1SSL/TLS\s0 server which accepts connections from remote clients speaking \s-1SSL/TLS.\s0 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 \s-1SSL\s0 functions and a simple \s-1HTTP\s0 response facility to emulate an SSL/TLS-aware webserver.
"s_time" 10
Item "s_time" \s-1SSL\s0 Connection Timer.
"sess_id" 10
Item "sess_id" \s-1SSL\s0 Session Data Management.
"smime" 10
Item "smime" S/MIME mail processing.
"speed" 10
Item "speed" Algorithm Speed Measurement.
"spkac" 10
Item "spkac" \s-1SPKAC\s0 printing and generating utility
"ts" 10
Item "ts" Time Stamping Authority tool (client/server)
"verify" 10
Item "verify" X.509 Certificate Verification.
"version" 10
Item "version" OpenSSL Version Information.
"x509" 10
Item "x509" X.509 Certificate Data Management.
"\s-1MESSAGE DIGEST COMMANDS\s0"
Subsection "MESSAGE DIGEST COMMANDS"
"md2" 10
Item "md2" \s-1MD2\s0 Digest
"md5" 10
Item "md5" \s-1MD5\s0 Digest
"mdc2" 10
Item "mdc2" \s-1MDC2\s0 Digest
"rmd160" 10
Item "rmd160" \s-1RMD-160\s0 Digest
"sha" 10
Item "sha" \s-1SHA\s0 Digest
"sha1" 10
Item "sha1" \s-1SHA-1\s0 Digest
"sha224" 10
Item "sha224" \s-1SHA-224\s0 Digest
"sha256" 10
Item "sha256" \s-1SHA-256\s0 Digest
"sha384" 10
Item "sha384" \s-1SHA-384\s0 Digest
"sha512" 10
Item "sha512" \s-1SHA-512\s0 Digest
"\s-1ENCODING AND CIPHER COMMANDS\s0"
Subsection "ENCODING AND CIPHER COMMANDS"
"base64" 10
Item "base64" Base64 Encoding
"bf bf-cbc bf-cfb bf-ecb bf-ofb" 10
Item "bf bf-cbc bf-cfb bf-ecb bf-ofb" Blowfish Cipher
"cast cast-cbc" 10
Item "cast cast-cbc" \s-1CAST\s0 Cipher
"cast5-cbc cast5-cfb cast5-ecb cast5-ofb" 10
Item "cast5-cbc cast5-cfb cast5-ecb cast5-ofb" \s-1CAST5\s0 Cipher
"des des-cbc des-cfb des-ecb des-ede des-ede-cbc des-ede-cfb des-ede-ofb des-ofb" 10
Item "des des-cbc des-cfb des-ecb des-ede des-ede-cbc des-ede-cfb des-ede-ofb des-ofb" \s-1DES\s0 Cipher
"des3 desx des-ede3 des-ede3-cbc des-ede3-cfb des-ede3-ofb" 10
Item "des3 desx des-ede3 des-ede3-cbc des-ede3-cfb des-ede3-ofb" Triple-DES Cipher
"idea idea-cbc idea-cfb idea-ecb idea-ofb" 10
Item "idea idea-cbc idea-cfb idea-ecb idea-ofb" \s-1IDEA\s0 Cipher
"rc2 rc2-cbc rc2-cfb rc2-ecb rc2-ofb" 10
Item "rc2 rc2-cbc rc2-cfb rc2-ecb rc2-ofb" \s-1RC2\s0 Cipher
"rc4" 10
Item "rc4" \s-1RC4\s0 Cipher
"rc5 rc5-cbc rc5-cfb rc5-ecb rc5-ofb" 10
Item "rc5 rc5-cbc rc5-cfb rc5-ecb rc5-ofb" \s-1RC5\s0 Cipher
"PASS PHRASE ARGUMENTS"
Header "PASS PHRASE ARGUMENTS" Several commands accept password arguments, typically using -passin and -passout for input and output passwords respectively. These allow the password to be obtained from a variety of sources. Both of these options take a single argument whose format is described below. If no password argument is given and a password is required then the user is prompted to enter one: this will typically be read from the current terminal with echoing turned off.
"pass:password" 10
Item "pass:password" the actual password is password. Since the password is visible to utilities (like 'ps' under Unix) this form should only be used where security is not important.
"env:var" 10
Item "env:var" obtain the password from the environment variable var. Since the environment of other processes is visible on certain platforms (e.g. ps under certain Unix OSes) this option should be used with caution.
"file:pathname" 10
Item "file:pathname" the first line of pathname is the password. If the same pathname argument is supplied to -passin and -passout arguments then the first line will be used for the input password and the next line for the output password. pathname need not refer to a regular file: it could for example refer to a device or named pipe.
"fd:number" 10
Item "fd:number" read the password from the file descriptor number. This can be used to send the data via a pipe for example.
"stdin" 10
Item "stdin" read the password from standard input.
"SEE ALSO"
Header "SEE ALSO" \fIasn1parse\|(1), ca\|(1), config\|(5), \fIcrl\|(1), crl2pkcs7\|(1), dgst\|(1), \fIdhparam\|(1), dsa\|(1), dsaparam\|(1), \fIenc\|(1), gendsa\|(1), genpkey\|(1), \fIgenrsa\|(1), nseq\|(1), openssl\|(1), \fIpasswd\|(1), \fIpkcs12\|(1), pkcs7\|(1), pkcs8\|(1), \fIrand\|(1), req\|(1), rsa\|(1), \fIrsautl\|(1), s_client\|(1), \fIs_server\|(1), s_time\|(1), \fIsmime\|(1), spkac\|(1), \fIverify\|(1), version\|(1), x509\|(1), \fIcrypto\|(3), ssl\|(3), x509v3_config\|(5)
"HISTORY"
Header "HISTORY" The openssl\|(1) document appeared in OpenSSL 0.9.2. The list-\s-1XXX\s0-commands pseudo-commands were added in OpenSSL 0.9.3; The list-\s-1XXX\s0-algorithms pseudo-commands were added in OpenSSL 1.0.0; the no-\s-1XXX\s0 pseudo-commands were added in OpenSSL 0.9.5a. For notes on the availability of other commands, see their individual manual pages.