HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //usr/local/openssl/man/man1/openssl.1
.\" -*- mode: troff; coding: utf-8 -*-
.\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
.ie n \{\
.    ds C` ""
.    ds C' ""
'br\}
.el\{\
.    ds C`
.    ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\"
.\" If the F register is >0, 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'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{\
.    if \nF \{\
.        de IX
.        tm Index:\\$1\t\\n%\t"\\$2"
..
.        if !\nF==2 \{\
.            nr % 0
.            nr F 2
.        \}
.    \}
.\}
.rr rF
.\" ========================================================================
.\"
.IX Title "OPENSSL 1"
.TH OPENSSL 1 2019-12-20 1.0.2u OpenSSL
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH NAME
openssl \- OpenSSL command line tool
.SH SYNOPSIS
.IX Header "SYNOPSIS"
\&\fBopenssl\fR
\&\fIcommand\fR
[ \fIcommand_opts\fR ]
[ \fIcommand_args\fR ]
.PP
\&\fBopenssl\fR [ \fBlist-standard-commands\fR | \fBlist-message-digest-commands\fR | \fBlist-cipher-commands\fR | \fBlist-cipher-algorithms\fR | \fBlist-message-digest-algorithms\fR | \fBlist-public-key-algorithms\fR]
.PP
\&\fBopenssl\fR \fBno\-\fR\fIXXX\fR [ \fIarbitrary options\fR ]
.SH DESCRIPTION
.IX Header "DESCRIPTION"
OpenSSL is a 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.
.PP
The \fBopenssl\fR program is a command line tool for using the various
cryptography functions of OpenSSL's \fBcrypto\fR library from the shell. 
It can be used for
.PP
.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
.SH "COMMAND SUMMARY"
.IX Header "COMMAND SUMMARY"
The \fBopenssl\fR program provides a rich variety of commands (\fIcommand\fR in the
SYNOPSIS above), each of which often has a wealth of options and arguments
(\fIcommand_opts\fR and \fIcommand_args\fR in the SYNOPSIS).
.PP
The pseudo-commands \fBlist-standard-commands\fR, \fBlist-message-digest-commands\fR,
and \fBlist-cipher-commands\fR 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 \fBopenssl\fR utility.
.PP
The pseudo-commands \fBlist-cipher-algorithms\fR and
\&\fBlist-message-digest-algorithms\fR list all cipher and message digest names, one entry per line. Aliases are listed as:
.PP
.Vb 1
\& from => to
.Ve
.PP
The pseudo-command \fBlist-public-key-algorithms\fR lists all supported public
key algorithms.
.PP
The pseudo-command \fBno\-\fR\fIXXX\fR tests whether a command of the
specified name is available.  If no command named \fIXXX\fR exists, it
returns 0 (success) and prints \fBno\-\fR\fIXXX\fR; otherwise it returns 1
and prints \fIXXX\fR.  In both cases, the output goes to \fBstdout\fR and
nothing is printed to \fBstderr\fR.  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 \fBopenssl\fR program.  (\fBno\-\fR\fIXXX\fR is
not able to detect pseudo-commands such as \fBquit\fR,
\&\fBlist\-\fR\fI...\fR\fB\-commands\fR, or \fBno\-\fR\fIXXX\fR itself.)
.SS "STANDARD COMMANDS"
.IX Subsection "STANDARD COMMANDS"
.IP \fBasn1parse\fR 10
.IX Item "asn1parse"
Parse an ASN.1 sequence.
.IP \fBca\fR 10
.IX Item "ca"
Certificate Authority (CA) Management.
.IP \fBciphers\fR 10
.IX Item "ciphers"
Cipher Suite Description Determination.
.IP \fBcms\fR 10
.IX Item "cms"
CMS (Cryptographic Message Syntax) utility
.IP \fBcrl\fR 10
.IX Item "crl"
Certificate Revocation List (CRL) Management.
.IP \fBcrl2pkcs7\fR 10
.IX Item "crl2pkcs7"
CRL to PKCS#7 Conversion.
.IP \fBdgst\fR 10
.IX Item "dgst"
Message Digest Calculation.
.IP \fBdh\fR 10
.IX Item "dh"
Diffie-Hellman Parameter Management.
Obsoleted by \fBdhparam\fR.
.IP \fBdhparam\fR 10
.IX Item "dhparam"
Generation and Management of Diffie-Hellman Parameters. Superseded by 
\&\fBgenpkey\fR and \fBpkeyparam\fR
.IP \fBdsa\fR 10
.IX Item "dsa"
DSA Data Management.
.IP \fBdsaparam\fR 10
.IX Item "dsaparam"
DSA Parameter Generation and Management. Superseded by 
\&\fBgenpkey\fR and \fBpkeyparam\fR
.IP \fBec\fR 10
.IX Item "ec"
EC (Elliptic curve) key processing
.IP \fBecparam\fR 10
.IX Item "ecparam"
EC parameter manipulation and generation
.IP \fBenc\fR 10
.IX Item "enc"
Encoding with Ciphers.
.IP \fBengine\fR 10
.IX Item "engine"
Engine (loadble module) information and manipulation.
.IP \fBerrstr\fR 10
.IX Item "errstr"
Error Number to Error String Conversion.
.IP \fBgendh\fR 10
.IX Item "gendh"
Generation of Diffie-Hellman Parameters.
Obsoleted by \fBdhparam\fR.
.IP \fBgendsa\fR 10
.IX Item "gendsa"
Generation of DSA Private Key from Parameters. Superseded by 
\&\fBgenpkey\fR and \fBpkey\fR
.IP \fBgenpkey\fR 10
.IX Item "genpkey"
Generation of Private Key or Parameters.
.IP \fBgenrsa\fR 10
.IX Item "genrsa"
Generation of RSA Private Key. Superceded by \fBgenpkey\fR.
.IP \fBnseq\fR 10
.IX Item "nseq"
Create or examine a netscape certificate sequence
.IP \fBocsp\fR 10
.IX Item "ocsp"
Online Certificate Status Protocol utility.
.IP \fBpasswd\fR 10
.IX Item "passwd"
Generation of hashed passwords.
.IP \fBpkcs12\fR 10
.IX Item "pkcs12"
PKCS#12 Data Management.
.IP \fBpkcs7\fR 10
.IX Item "pkcs7"
PKCS#7 Data Management.
.IP \fBpkey\fR 10
.IX Item "pkey"
Public and private key management.
.IP \fBpkeyparam\fR 10
.IX Item "pkeyparam"
Public key algorithm parameter management.
.IP \fBpkeyutl\fR 10
.IX Item "pkeyutl"
Public key algorithm cryptographic operation utility.
.IP \fBrand\fR 10
.IX Item "rand"
Generate pseudo-random bytes.
.IP \fBreq\fR 10
.IX Item "req"
PKCS#10 X.509 Certificate Signing Request (CSR) Management.
.IP \fBrsa\fR 10
.IX Item "rsa"
RSA key management.
.IP \fBrsautl\fR 10
.IX Item "rsautl"
RSA utility for signing, verification, encryption, and decryption. Superseded
by  \fBpkeyutl\fR
.IP \fBs_client\fR 10
.IX Item "s_client"
This implements a 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 \fBssl\fR library.
.IP \fBs_server\fR 10
.IX Item "s_server"
This implements a 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 \fBssl\fR 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.
.IP \fBs_time\fR 10
.IX Item "s_time"
SSL Connection Timer.
.IP \fBsess_id\fR 10
.IX Item "sess_id"
SSL Session Data Management.
.IP \fBsmime\fR 10
.IX Item "smime"
S/MIME mail processing.
.IP \fBspeed\fR 10
.IX Item "speed"
Algorithm Speed Measurement.
.IP \fBspkac\fR 10
.IX Item "spkac"
SPKAC printing and generating utility
.IP \fBts\fR 10
.IX Item "ts"
Time Stamping Authority tool (client/server)
.IP \fBverify\fR 10
.IX Item "verify"
X.509 Certificate Verification.
.IP \fBversion\fR 10
.IX Item "version"
OpenSSL Version Information.
.IP \fBx509\fR 10
.IX Item "x509"
X.509 Certificate Data Management.
.SS "MESSAGE DIGEST COMMANDS"
.IX Subsection "MESSAGE DIGEST COMMANDS"
.IP \fBmd2\fR 10
.IX Item "md2"
MD2 Digest
.IP \fBmd5\fR 10
.IX Item "md5"
MD5 Digest
.IP \fBmdc2\fR 10
.IX Item "mdc2"
MDC2 Digest
.IP \fBrmd160\fR 10
.IX Item "rmd160"
RMD\-160 Digest
.IP \fBsha\fR 10
.IX Item "sha"
SHA Digest
.IP \fBsha1\fR 10
.IX Item "sha1"
SHA\-1 Digest
.IP \fBsha224\fR 10
.IX Item "sha224"
SHA\-224 Digest
.IP \fBsha256\fR 10
.IX Item "sha256"
SHA\-256 Digest
.IP \fBsha384\fR 10
.IX Item "sha384"
SHA\-384 Digest
.IP \fBsha512\fR 10
.IX Item "sha512"
SHA\-512 Digest
.SS "ENCODING AND CIPHER COMMANDS"
.IX Subsection "ENCODING AND CIPHER COMMANDS"
.IP \fBbase64\fR 10
.IX Item "base64"
Base64 Encoding
.IP "\fBbf bf-cbc bf-cfb bf-ecb bf-ofb\fR" 10
.IX Item "bf bf-cbc bf-cfb bf-ecb bf-ofb"
Blowfish Cipher
.IP "\fBcast cast-cbc\fR" 10
.IX Item "cast cast-cbc"
CAST Cipher
.IP "\fBcast5\-cbc cast5\-cfb cast5\-ecb cast5\-ofb\fR" 10
.IX Item "cast5-cbc cast5-cfb cast5-ecb cast5-ofb"
CAST5 Cipher
.IP "\fBdes des-cbc des-cfb des-ecb des-ede des-ede-cbc des-ede-cfb des-ede-ofb des-ofb\fR" 10
.IX Item "des des-cbc des-cfb des-ecb des-ede des-ede-cbc des-ede-cfb des-ede-ofb des-ofb"
DES Cipher
.IP "\fBdes3 desx des\-ede3 des\-ede3\-cbc des\-ede3\-cfb des\-ede3\-ofb\fR" 10
.IX Item "des3 desx des-ede3 des-ede3-cbc des-ede3-cfb des-ede3-ofb"
Triple-DES Cipher
.IP "\fBidea idea-cbc idea-cfb idea-ecb idea-ofb\fR" 10
.IX Item "idea idea-cbc idea-cfb idea-ecb idea-ofb"
IDEA Cipher
.IP "\fBrc2 rc2\-cbc rc2\-cfb rc2\-ecb rc2\-ofb\fR" 10
.IX Item "rc2 rc2-cbc rc2-cfb rc2-ecb rc2-ofb"
RC2 Cipher
.IP \fBrc4\fR 10
.IX Item "rc4"
RC4 Cipher
.IP "\fBrc5 rc5\-cbc rc5\-cfb rc5\-ecb rc5\-ofb\fR" 10
.IX Item "rc5 rc5-cbc rc5-cfb rc5-ecb rc5-ofb"
RC5 Cipher
.SH "PASS PHRASE ARGUMENTS"
.IX Header "PASS PHRASE ARGUMENTS"
Several commands accept password arguments, typically using \fB\-passin\fR
and \fB\-passout\fR 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.
.IP \fBpass:password\fR 10
.IX Item "pass:password"
the actual password is \fBpassword\fR. Since the password is visible
to utilities (like 'ps' under Unix) this form should only be used
where security is not important.
.IP \fBenv:var\fR 10
.IX Item "env:var"
obtain the password from the environment variable \fBvar\fR. 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.
.IP \fBfile:pathname\fR 10
.IX Item "file:pathname"
the first line of \fBpathname\fR is the password. If the same \fBpathname\fR
argument is supplied to \fB\-passin\fR and \fB\-passout\fR arguments then the first
line will be used for the input password and the next line for the output
password. \fBpathname\fR need not refer to a regular file: it could for example
refer to a device or named pipe.
.IP \fBfd:number\fR 10
.IX Item "fd:number"
read the password from the file descriptor \fBnumber\fR. This can be used to
send the data via a pipe for example.
.IP \fBstdin\fR 10
.IX Item "stdin"
read the password from standard input.
.SH "SEE ALSO"
.IX Header "SEE ALSO"
\&\fBasn1parse\fR\|(1), \fBca\fR\|(1), \fBconfig\fR\|(5),
\&\fBcrl\fR\|(1), \fBcrl2pkcs7\fR\|(1), \fBdgst\fR\|(1),
\&\fBdhparam\fR\|(1), \fBdsa\fR\|(1), \fBdsaparam\fR\|(1),
\&\fBenc\fR\|(1), \fBgendsa\fR\|(1), \fBgenpkey\fR\|(1),
\&\fBgenrsa\fR\|(1), \fBnseq\fR\|(1), \fBopenssl\fR\|(1),
\&\fBpasswd\fR\|(1),
\&\fBpkcs12\fR\|(1), \fBpkcs7\fR\|(1), \fBpkcs8\fR\|(1),
\&\fBrand\fR\|(1), \fBreq\fR\|(1), \fBrsa\fR\|(1),
\&\fBrsautl\fR\|(1), \fBs_client\fR\|(1),
\&\fBs_server\fR\|(1), \fBs_time\fR\|(1),
\&\fBsmime\fR\|(1), \fBspkac\fR\|(1),
\&\fBverify\fR\|(1), \fBversion\fR\|(1), \fBx509\fR\|(1),
\&\fBcrypto\fR\|(3), \fBssl\fR\|(3), \fBx509v3_config\fR\|(5)
.SH HISTORY
.IX Header "HISTORY"
The \fBopenssl\fR\|(1) document appeared in OpenSSL 0.9.2.
The \fBlist\-\fR\fIXXX\fR\fB\-commands\fR pseudo-commands were added in OpenSSL 0.9.3;
The \fBlist\-\fR\fIXXX\fR\fB\-algorithms\fR pseudo-commands were added in OpenSSL 1.0.0;
the \fBno\-\fR\fIXXX\fR pseudo-commands were added in OpenSSL 0.9.5a.
For notes on the availability of other commands, see their individual
manual pages.