654 lines
21 KiB
HTML
654 lines
21 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of OPENSSL</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>OPENSSL</H1>
|
|
Section: OpenSSL (1SSL)<BR>Updated: 2021-03-22<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
openssl - OpenSSL command line tool
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
|
|
<B>openssl</B>
|
|
<I>command</I>
|
|
[ <I>command_opts</I> ]
|
|
[ <I>command_args</I> ]
|
|
<P>
|
|
|
|
<B>openssl</B> <B>list</B> [ <B>standard-commands</B> | <B>digest-commands</B> | <B>cipher-commands</B> | <B>cipher-algorithms</B> | <B>digest-algorithms</B> | <B>public-key-algorithms</B>]
|
|
<P>
|
|
|
|
<B>openssl</B> <B>no-</B><I></I><FONT SIZE="-1"><I>XXX</I></FONT><I></I> [ <I>arbitrary options</I> ]
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
|
|
OpenSSL is a cryptography toolkit implementing the Secure Sockets Layer (<FONT SIZE="-1">SSL</FONT>
|
|
v2/v3) and Transport Layer Security (<FONT SIZE="-1">TLS</FONT> v1) network protocols and related
|
|
cryptography standards required by them.
|
|
<P>
|
|
|
|
The <B>openssl</B> program is a command line tool for using the various
|
|
cryptography functions of OpenSSL's <B>crypto</B> library from the shell.
|
|
It can be used for
|
|
<P>
|
|
|
|
|
|
|
|
<PRE>
|
|
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
|
|
|
|
</PRE>
|
|
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>COMMAND SUMMARY</H2>
|
|
|
|
|
|
|
|
The <B>openssl</B> program provides a rich variety of commands (<I>command</I> in the
|
|
<FONT SIZE="-1">SYNOPSIS</FONT> above), each of which often has a wealth of options and arguments
|
|
(<I>command_opts</I> and <I>command_args</I> in the <FONT SIZE="-1">SYNOPSIS</FONT>).
|
|
<P>
|
|
|
|
Detailed documentation and use cases for most standard subcommands are available
|
|
(e.g., <B><A HREF="/cgi-bin/man/man2html?1+x509">x509</A></B>(1) or <B><A HREF="/cgi-bin/man/man2html?1+openssl-x509">openssl-x509</A></B>(1)).
|
|
<P>
|
|
|
|
Many commands use an external configuration file for some or all of their
|
|
arguments and have a <B>-config</B> option to specify that file.
|
|
The environment variable <B></B><FONT SIZE="-1"><B>OPENSSL_CONF</B></FONT><B></B> can be used to specify
|
|
the location of the file.
|
|
If the environment variable is not specified, then the file is named
|
|
<B>openssl.cnf</B> in the default certificate storage area, whose value
|
|
depends on the configuration flags specified when the OpenSSL
|
|
was built.
|
|
<P>
|
|
|
|
The list parameters <B>standard-commands</B>, <B>digest-commands</B>,
|
|
and <B>cipher-commands</B> 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 <B>openssl</B> utility.
|
|
<P>
|
|
|
|
The list parameters <B>cipher-algorithms</B> and
|
|
<B>digest-algorithms</B> list all cipher and message digest names, one entry per line. Aliases are listed as:
|
|
<P>
|
|
|
|
|
|
|
|
<PRE>
|
|
from => to
|
|
|
|
</PRE>
|
|
|
|
|
|
<P>
|
|
|
|
The list parameter <B>public-key-algorithms</B> lists all supported public
|
|
key algorithms.
|
|
<P>
|
|
|
|
The command <B>no-</B><I></I><FONT SIZE="-1"><I>XXX</I></FONT><I></I> tests whether a command of the
|
|
specified name is available. If no command named <I></I><FONT SIZE="-1"><I>XXX</I></FONT><I></I> exists, it
|
|
returns 0 (success) and prints <B>no-</B><I></I><FONT SIZE="-1"><I>XXX</I></FONT><I></I>; otherwise it returns 1
|
|
and prints <I></I><FONT SIZE="-1"><I>XXX</I></FONT><I></I>. In both cases, the output goes to <B>stdout</B> and
|
|
nothing is printed to <B>stderr</B>. 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 <B>openssl</B> program. (<B>no-</B><I></I><FONT SIZE="-1"><I>XXX</I></FONT><I></I> is
|
|
not able to detect pseudo-commands such as <B>quit</B>,
|
|
<B>list</B>, or <B>no-</B><I></I><FONT SIZE="-1"><I>XXX</I></FONT><I></I> itself.)
|
|
<A NAME="lbAF"> </A>
|
|
<H3>Standard Commands</H3>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>asn1parse</B><DD>
|
|
|
|
|
|
Parse an <FONT SIZE="-1">ASN.1</FONT> sequence.
|
|
<DT id="2"><B>ca</B><DD>
|
|
|
|
|
|
Certificate Authority (<FONT SIZE="-1">CA</FONT>) Management.
|
|
<DT id="3"><B>ciphers</B><DD>
|
|
|
|
|
|
Cipher Suite Description Determination.
|
|
<DT id="4"><B>cms</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">CMS</FONT> (Cryptographic Message Syntax) utility.
|
|
<DT id="5"><B>crl</B><DD>
|
|
|
|
|
|
Certificate Revocation List (<FONT SIZE="-1">CRL</FONT>) Management.
|
|
<DT id="6"><B>crl2pkcs7</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">CRL</FONT> to PKCS#7 Conversion.
|
|
<DT id="7"><B>dgst</B><DD>
|
|
|
|
|
|
Message Digest Calculation.
|
|
<DT id="8"><B>dh</B><DD>
|
|
|
|
|
|
Diffie-Hellman Parameter Management.
|
|
Obsoleted by <B><A HREF="/cgi-bin/man/man2html?1+dhparam">dhparam</A></B>(1).
|
|
<DT id="9"><B>dhparam</B><DD>
|
|
|
|
|
|
Generation and Management of Diffie-Hellman Parameters. Superseded by
|
|
<B><A HREF="/cgi-bin/man/man2html?1+genpkey">genpkey</A></B>(1) and <B><A HREF="/cgi-bin/man/man2html?1+pkeyparam">pkeyparam</A></B>(1).
|
|
<DT id="10"><B>dsa</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">DSA</FONT> Data Management.
|
|
<DT id="11"><B>dsaparam</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">DSA</FONT> Parameter Generation and Management. Superseded by
|
|
<B><A HREF="/cgi-bin/man/man2html?1+genpkey">genpkey</A></B>(1) and <B><A HREF="/cgi-bin/man/man2html?1+pkeyparam">pkeyparam</A></B>(1).
|
|
<DT id="12"><B>ec</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">EC</FONT> (Elliptic curve) key processing.
|
|
<DT id="13"><B>ecparam</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">EC</FONT> parameter manipulation and generation.
|
|
<DT id="14"><B>enc</B><DD>
|
|
|
|
|
|
Encoding with Ciphers.
|
|
<DT id="15"><B>engine</B><DD>
|
|
|
|
|
|
Engine (loadable module) information and manipulation.
|
|
<DT id="16"><B>errstr</B><DD>
|
|
|
|
|
|
Error Number to Error String Conversion.
|
|
<DT id="17"><B>gendh</B><DD>
|
|
|
|
|
|
Generation of Diffie-Hellman Parameters.
|
|
Obsoleted by <B><A HREF="/cgi-bin/man/man2html?1+dhparam">dhparam</A></B>(1).
|
|
<DT id="18"><B>gendsa</B><DD>
|
|
|
|
|
|
Generation of <FONT SIZE="-1">DSA</FONT> Private Key from Parameters. Superseded by
|
|
<B><A HREF="/cgi-bin/man/man2html?1+genpkey">genpkey</A></B>(1) and <B><A HREF="/cgi-bin/man/man2html?1+pkey">pkey</A></B>(1).
|
|
<DT id="19"><B>genpkey</B><DD>
|
|
|
|
|
|
Generation of Private Key or Parameters.
|
|
<DT id="20"><B>genrsa</B><DD>
|
|
|
|
|
|
Generation of <FONT SIZE="-1">RSA</FONT> Private Key. Superseded by <B><A HREF="/cgi-bin/man/man2html?1+genpkey">genpkey</A></B>(1).
|
|
<DT id="21"><B>nseq</B><DD>
|
|
|
|
|
|
Create or examine a Netscape certificate sequence.
|
|
<DT id="22"><B>ocsp</B><DD>
|
|
|
|
|
|
Online Certificate Status Protocol utility.
|
|
<DT id="23"><B>passwd</B><DD>
|
|
|
|
|
|
Generation of hashed passwords.
|
|
<DT id="24"><B>pkcs12</B><DD>
|
|
|
|
|
|
PKCS#12 Data Management.
|
|
<DT id="25"><B>pkcs7</B><DD>
|
|
|
|
|
|
PKCS#7 Data Management.
|
|
<DT id="26"><B>pkcs8</B><DD>
|
|
|
|
|
|
PKCS#8 format private key conversion tool.
|
|
<DT id="27"><B>pkey</B><DD>
|
|
|
|
|
|
Public and private key management.
|
|
<DT id="28"><B>pkeyparam</B><DD>
|
|
|
|
|
|
Public key algorithm parameter management.
|
|
<DT id="29"><B>pkeyutl</B><DD>
|
|
|
|
|
|
Public key algorithm cryptographic operation utility.
|
|
<DT id="30"><B>prime</B><DD>
|
|
|
|
|
|
Compute prime numbers.
|
|
<DT id="31"><B>rand</B><DD>
|
|
|
|
|
|
Generate pseudo-random bytes.
|
|
<DT id="32"><B>rehash</B><DD>
|
|
|
|
|
|
Create symbolic links to certificate and <FONT SIZE="-1">CRL</FONT> files named by the hash values.
|
|
<DT id="33"><B>req</B><DD>
|
|
|
|
|
|
PKCS#10 X.509 Certificate Signing Request (<FONT SIZE="-1">CSR</FONT>) Management.
|
|
<DT id="34"><B>rsa</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">RSA</FONT> key management.
|
|
<DT id="35"><B>rsautl</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">RSA</FONT> utility for signing, verification, encryption, and decryption. Superseded
|
|
by <B><A HREF="/cgi-bin/man/man2html?1+pkeyutl">pkeyutl</A></B>(1).
|
|
<DT id="36"><B>s_client</B><DD>
|
|
|
|
|
|
This implements a generic <FONT SIZE="-1">SSL/TLS</FONT> client which can establish a transparent
|
|
connection to a remote server speaking <FONT SIZE="-1">SSL/TLS.</FONT> It's intended for testing
|
|
purposes only and provides only rudimentary interface functionality but
|
|
internally uses mostly all functionality of the OpenSSL <B>ssl</B> library.
|
|
<DT id="37"><B>s_server</B><DD>
|
|
|
|
|
|
This implements a generic <FONT SIZE="-1">SSL/TLS</FONT> server which accepts connections from remote
|
|
clients speaking <FONT SIZE="-1">SSL/TLS.</FONT> It's intended for testing purposes only and provides
|
|
only rudimentary interface functionality but internally uses mostly all
|
|
functionality of the OpenSSL <B>ssl</B> library. It provides both an own command
|
|
line oriented protocol for testing <FONT SIZE="-1">SSL</FONT> functions and a simple <FONT SIZE="-1">HTTP</FONT> response
|
|
facility to emulate an SSL/TLS-aware webserver.
|
|
<DT id="38"><B>s_time</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">SSL</FONT> Connection Timer.
|
|
<DT id="39"><B>sess_id</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">SSL</FONT> Session Data Management.
|
|
<DT id="40"><B>smime</B><DD>
|
|
|
|
|
|
S/MIME mail processing.
|
|
<DT id="41"><B>speed</B><DD>
|
|
|
|
|
|
Algorithm Speed Measurement.
|
|
<DT id="42"><B>spkac</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">SPKAC</FONT> printing and generating utility.
|
|
<DT id="43"><B>srp</B><DD>
|
|
|
|
|
|
Maintain <FONT SIZE="-1">SRP</FONT> password file.
|
|
<DT id="44"><B>storeutl</B><DD>
|
|
|
|
|
|
Utility to list and display certificates, keys, CRLs, etc.
|
|
<DT id="45"><B>ts</B><DD>
|
|
|
|
|
|
Time Stamping Authority tool (client/server).
|
|
<DT id="46"><B>verify</B><DD>
|
|
|
|
|
|
X.509 Certificate Verification.
|
|
<DT id="47"><B>version</B><DD>
|
|
|
|
|
|
OpenSSL Version Information.
|
|
<DT id="48"><B>x509</B><DD>
|
|
|
|
|
|
X.509 Certificate Data Management.
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H3>Message Digest Commands</H3>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="49"><B>blake2b512</B><DD>
|
|
|
|
|
|
BLAKE2b-512 Digest
|
|
<DT id="50"><B>blake2s256</B><DD>
|
|
|
|
|
|
BLAKE2s-256 Digest
|
|
<DT id="51"><B>md2</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">MD2</FONT> Digest
|
|
<DT id="52"><B>md4</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">MD4</FONT> Digest
|
|
<DT id="53"><B>md5</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">MD5</FONT> Digest
|
|
<DT id="54"><B>mdc2</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">MDC2</FONT> Digest
|
|
<DT id="55"><B>rmd160</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">RMD-160</FONT> Digest
|
|
<DT id="56"><B>sha1</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">SHA-1</FONT> Digest
|
|
<DT id="57"><B>sha224</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">SHA-2 224</FONT> Digest
|
|
<DT id="58"><B>sha256</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">SHA-2 256</FONT> Digest
|
|
<DT id="59"><B>sha384</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">SHA-2 384</FONT> Digest
|
|
<DT id="60"><B>sha512</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">SHA-2 512</FONT> Digest
|
|
<DT id="61"><B>sha3-224</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">SHA-3 224</FONT> Digest
|
|
<DT id="62"><B>sha3-256</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">SHA-3 256</FONT> Digest
|
|
<DT id="63"><B>sha3-384</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">SHA-3 384</FONT> Digest
|
|
<DT id="64"><B>sha3-512</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">SHA-3 512</FONT> Digest
|
|
<DT id="65"><B>shake128</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">SHA-3 SHAKE128</FONT> Digest
|
|
<DT id="66"><B>shake256</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">SHA-3 SHAKE256</FONT> Digest
|
|
<DT id="67"><B>sm3</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">SM3</FONT> Digest
|
|
</DL>
|
|
<A NAME="lbAH"> </A>
|
|
<H3>Encoding and Cipher Commands</H3>
|
|
|
|
|
|
|
|
The following aliases provide convenient access to the most used encodings
|
|
and ciphers.
|
|
<P>
|
|
|
|
Depending on how OpenSSL was configured and built, not all ciphers listed
|
|
here may be present. See <B><A HREF="/cgi-bin/man/man2html?1+enc">enc</A></B>(1) for more information and command usage.
|
|
<DL COMPACT>
|
|
<DT id="68"><B>aes128</B>, <B>aes-128-cbc</B>, <B>aes-128-cfb</B>, <B>aes-128-ctr</B>, <B>aes-128-ecb</B>, <B>aes-128-ofb</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">AES-128</FONT> Cipher
|
|
<DT id="69"><B>aes192</B>, <B>aes-192-cbc</B>, <B>aes-192-cfb</B>, <B>aes-192-ctr</B>, <B>aes-192-ecb</B>, <B>aes-192-ofb</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">AES-192</FONT> Cipher
|
|
<DT id="70"><B>aes256</B>, <B>aes-256-cbc</B>, <B>aes-256-cfb</B>, <B>aes-256-ctr</B>, <B>aes-256-ecb</B>, <B>aes-256-ofb</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">AES-256</FONT> Cipher
|
|
<DT id="71"><B>aria128</B>, <B>aria-128-cbc</B>, <B>aria-128-cfb</B>, <B>aria-128-ctr</B>, <B>aria-128-ecb</B>, <B>aria-128-ofb</B><DD>
|
|
|
|
|
|
Aria-128 Cipher
|
|
<DT id="72"><B>aria192</B>, <B>aria-192-cbc</B>, <B>aria-192-cfb</B>, <B>aria-192-ctr</B>, <B>aria-192-ecb</B>, <B>aria-192-ofb</B><DD>
|
|
|
|
|
|
Aria-192 Cipher
|
|
<DT id="73"><B>aria256</B>, <B>aria-256-cbc</B>, <B>aria-256-cfb</B>, <B>aria-256-ctr</B>, <B>aria-256-ecb</B>, <B>aria-256-ofb</B><DD>
|
|
|
|
|
|
Aria-256 Cipher
|
|
<DT id="74"><B>base64</B><DD>
|
|
|
|
|
|
Base64 Encoding
|
|
<DT id="75"><B>bf</B>, <B>bf-cbc</B>, <B>bf-cfb</B>, <B>bf-ecb</B>, <B>bf-ofb</B><DD>
|
|
|
|
|
|
Blowfish Cipher
|
|
<DT id="76"><B>camellia128</B>, <B>camellia-128-cbc</B>, <B>camellia-128-cfb</B>, <B>camellia-128-ctr</B>, <B>camellia-128-ecb</B>, <B>camellia-128-ofb</B><DD>
|
|
|
|
|
|
Camellia-128 Cipher
|
|
<DT id="77"><B>camellia192</B>, <B>camellia-192-cbc</B>, <B>camellia-192-cfb</B>, <B>camellia-192-ctr</B>, <B>camellia-192-ecb</B>, <B>camellia-192-ofb</B><DD>
|
|
|
|
|
|
Camellia-192 Cipher
|
|
<DT id="78"><B>camellia256</B>, <B>camellia-256-cbc</B>, <B>camellia-256-cfb</B>, <B>camellia-256-ctr</B>, <B>camellia-256-ecb</B>, <B>camellia-256-ofb</B><DD>
|
|
|
|
|
|
Camellia-256 Cipher
|
|
<DT id="79"><B>cast</B>, <B>cast-cbc</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">CAST</FONT> Cipher
|
|
<DT id="80"><B>cast5-cbc</B>, <B>cast5-cfb</B>, <B>cast5-ecb</B>, <B>cast5-ofb</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">CAST5</FONT> Cipher
|
|
<DT id="81"><B>chacha20</B><DD>
|
|
|
|
|
|
Chacha20 Cipher
|
|
<DT id="82"><B>des</B>, <B>des-cbc</B>, <B>des-cfb</B>, <B>des-ecb</B>, <B>des-ede</B>, <B>des-ede-cbc</B>, <B>des-ede-cfb</B>, <B>des-ede-ofb</B>, <B>des-ofb</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">DES</FONT> Cipher
|
|
<DT id="83"><B>des3</B>, <B>desx</B>, <B>des-ede3</B>, <B>des-ede3-cbc</B>, <B>des-ede3-cfb</B>, <B>des-ede3-ofb</B><DD>
|
|
|
|
|
|
Triple-DES Cipher
|
|
<DT id="84"><B>idea</B>, <B>idea-cbc</B>, <B>idea-cfb</B>, <B>idea-ecb</B>, <B>idea-ofb</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">IDEA</FONT> Cipher
|
|
<DT id="85"><B>rc2</B>, <B>rc2-cbc</B>, <B>rc2-cfb</B>, <B>rc2-ecb</B>, <B>rc2-ofb</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">RC2</FONT> Cipher
|
|
<DT id="86"><B>rc4</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">RC4</FONT> Cipher
|
|
<DT id="87"><B>rc5</B>, <B>rc5-cbc</B>, <B>rc5-cfb</B>, <B>rc5-ecb</B>, <B>rc5-ofb</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">RC5</FONT> Cipher
|
|
<DT id="88"><B>seed</B>, <B>seed-cbc</B>, <B>seed-cfb</B>, <B>seed-ecb</B>, <B>seed-ofb</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">SEED</FONT> Cipher
|
|
<DT id="89"><B>sm4</B>, <B>sm4-cbc</B>, <B>sm4-cfb</B>, <B>sm4-ctr</B>, <B>sm4-ecb</B>, <B>sm4-ofb</B><DD>
|
|
|
|
|
|
<FONT SIZE="-1">SM4</FONT> Cipher
|
|
</DL>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
|
|
|
|
Details of which options are available depend on the specific command.
|
|
This section describes some common options with common behavior.
|
|
<A NAME="lbAJ"> </A>
|
|
<H3>Common Options</H3>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="90"><B>-help</B><DD>
|
|
|
|
|
|
Provides a terse summary of all options.
|
|
</DL>
|
|
<A NAME="lbAK"> </A>
|
|
<H3>Pass Phrase Options</H3>
|
|
|
|
|
|
|
|
Several commands accept password arguments, typically using <B>-passin</B>
|
|
and <B>-passout</B> 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.
|
|
<P>
|
|
|
|
Note that character encoding may be relevant, please see
|
|
<B><A HREF="/cgi-bin/man/man2html?7+passphrase-encoding">passphrase-encoding</A></B>(7).
|
|
<DL COMPACT>
|
|
<DT id="91"><B>pass:password</B><DD>
|
|
|
|
|
|
The actual password is <B>password</B>. Since the password is visible
|
|
to utilities (like 'ps' under Unix) this form should only be used
|
|
where security is not important.
|
|
<DT id="92"><B>env:var</B><DD>
|
|
|
|
|
|
Obtain the password from the environment variable <B>var</B>. 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.
|
|
<DT id="93"><B>file:pathname</B><DD>
|
|
|
|
|
|
The first line of <B>pathname</B> is the password. If the same <B>pathname</B>
|
|
argument is supplied to <B>-passin</B> and <B>-passout</B> arguments then the first
|
|
line will be used for the input password and the next line for the output
|
|
password. <B>pathname</B> need not refer to a regular file: it could for example
|
|
refer to a device or named pipe.
|
|
<DT id="94"><B>fd:number</B><DD>
|
|
|
|
|
|
Read the password from the file descriptor <B>number</B>. This can be used to
|
|
send the data via a pipe for example.
|
|
<DT id="95"><B>stdin</B><DD>
|
|
|
|
|
|
Read the password from standard input.
|
|
</DL>
|
|
<A NAME="lbAL"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+asn1parse">asn1parse</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+ca">ca</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+ciphers">ciphers</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+cms">cms</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?5+config">config</A></B>(5),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+crl">crl</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+crl2pkcs7">crl2pkcs7</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+dgst">dgst</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+dhparam">dhparam</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+dsa">dsa</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+dsaparam">dsaparam</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ec">ec</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+ecparam">ecparam</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+enc">enc</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+engine">engine</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+errstr">errstr</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+gendsa">gendsa</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+genpkey">genpkey</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+genrsa">genrsa</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+nseq">nseq</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+ocsp">ocsp</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+passwd">passwd</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pkcs12">pkcs12</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+pkcs7">pkcs7</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+pkcs8">pkcs8</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pkey">pkey</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+pkeyparam">pkeyparam</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+pkeyutl">pkeyutl</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+prime">prime</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+rand">rand</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+rehash">rehash</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+req">req</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+rsa">rsa</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+rsautl">rsautl</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+s_client">s_client</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+s_server">s_server</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+s_time">s_time</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+sess_id">sess_id</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+smime">smime</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+speed">speed</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+spkac">spkac</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+srp">srp</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+storeutl">storeutl</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+ts">ts</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+verify">verify</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+version">version</A></B>(1), <B><A HREF="/cgi-bin/man/man2html?1+x509">x509</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?7+crypto">crypto</A></B>(7), <B><A HREF="/cgi-bin/man/man2html?7+ssl">ssl</A></B>(7), <B><A HREF="/cgi-bin/man/man2html?5+x509v3_config">x509v3_config</A></B>(5)
|
|
<A NAME="lbAM"> </A>
|
|
<H2>HISTORY</H2>
|
|
|
|
|
|
|
|
The <B>list-</B><I></I><FONT SIZE="-1"><I>XXX</I></FONT><I></I><B>-algorithms</B> pseudo-commands were added in OpenSSL 1.0.0;
|
|
For notes on the availability of other commands, see their individual
|
|
manual pages.
|
|
<A NAME="lbAN"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
|
|
|
|
Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
|
|
<P>
|
|
|
|
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 <FONT SIZE="-1">LICENSE</FONT> in the source distribution or at
|
|
<<A HREF="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</A>>.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="96"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="97"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="98"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="99"><A HREF="#lbAE">COMMAND SUMMARY</A><DD>
|
|
<DL>
|
|
<DT id="100"><A HREF="#lbAF">Standard Commands</A><DD>
|
|
<DT id="101"><A HREF="#lbAG">Message Digest Commands</A><DD>
|
|
<DT id="102"><A HREF="#lbAH">Encoding and Cipher Commands</A><DD>
|
|
</DL>
|
|
<DT id="103"><A HREF="#lbAI">OPTIONS</A><DD>
|
|
<DL>
|
|
<DT id="104"><A HREF="#lbAJ">Common Options</A><DD>
|
|
<DT id="105"><A HREF="#lbAK">Pass Phrase Options</A><DD>
|
|
</DL>
|
|
<DT id="106"><A HREF="#lbAL">SEE ALSO</A><DD>
|
|
<DT id="107"><A HREF="#lbAM">HISTORY</A><DD>
|
|
<DT id="108"><A HREF="#lbAN">COPYRIGHT</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:21 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|