info > openssl(1)

Not found locally for openssl. Try Google search

📛 NAME

openssl - OpenSSL command line program

🚀 Quick Reference

Use CaseCommandDescription
🔑 Generate RSA private keyopenssl genrsa -out key.pem 2048Generate a 2048-bit RSA private key
📜 Generate self-signed certificateopenssl req -new -x509 -key key.pem -out cert.pem -days 365Create a self-signed X.509 certificate
🔒 Encrypt file with AES-256openssl enc -aes-256-cbc -salt -in file.txt -out file.encEncrypt a file using AES-256-CBC
🔓 Decrypt fileopenssl enc -d -aes-256-cbc -in file.enc -out file.txtDecrypt a file using AES-256-CBC
🔍 View certificate detailsopenssl x509 -in cert.pem -text -nooutDisplay human-readable certificate info
🌐 Test SSL/TLS connectionopenssl s_client -connect example.com:443Connect to a server over SSL/TLS for testing
📏 Compute file hash (SHA-256)openssl dgst -sha256 file.txtCalculate SHA-256 digest of a file
🔑 Generate a CSRopenssl req -new -key key.pem -out csr.pemCreate a certificate signing request

📋 SYNOPSIS

openssl command [ options ... ] [ parameters ... ]
openssl list standard-commands | digest-commands | cipher-commands |
       cipher-algorithms | digest-algorithms | mac-algorithms | public-key-
       algorithms
openssl no-XXX [ options ]

📖 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.

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

đŸ› ī¸ COMMAND SUMMARY

The openssl program provides a rich variety of commands (command in the "SYNOPSIS" above). Each command can have many options and argument parameters, shown above as options and parameters.

Detailed documentation and use cases for most standard subcommands are available (e.g., openssl-x509(1)).

The list options -standard-commands, -digest-commands, and -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.

The list parameters -cipher-algorithms, -digest-algorithms, and -mac-algorithms list all cipher, message digest, and message authentication code names, one entry per line. Aliases are listed as:

from => to

The list parameter -public-key-algorithms lists all supported public key algorithms.

The command no-XXX tests whether a command of the specified name is available. If no command named XXX exists, it returns 0 (success) and prints no-XXX; otherwise it returns 1 and prints XXX. 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-XXX is not able to detect pseudo-commands such as quit, list, or no-XXX itself.)

âš™ī¸ Configuration Option

Many commands use an external configuration file for some or all of their arguments and have a -config option to specify that file. The default name of the file is openssl.cnf in the default certificate storage area, which can be determined from the openssl-version(1) command using the -d or -a option. The environment variable OPENSSL_CONF can be used to specify a different file location or to disable loading a configuration (using the empty string).

Among others, the configuration file can be used to load modules and to specify parameters for generating certificates and random numbers. See config(5) for details.

📂 Standard Commands

🧮 Message Digest Commands

🔒 Encryption, Decryption, and Encoding Commands

The following aliases provide convenient access to the most used encodings and ciphers. Depending on how OpenSSL was configured and built, not all ciphers listed here may be present. See openssl-enc(1) for more information.

âš™ī¸ OPTIONS

Details of which options are available depend on the specific command. This section describes some common options with common behavior.

📌 Common Options

📄 Format Options

See openssl-format-options(1) for manual page.

🔑 Pass Phrase Options

See the openssl-passphrase-options(1) manual page.

🎲 Random State Options

Prior to OpenSSL 1.1.1, it was common for applications to store information about the state of the random-number generator in a file that was loaded at startup and rewritten upon exit. On modern operating systems, this is generally no longer necessary as OpenSSL will seed itself from a trusted entropy source provided by the operating system. These flags are still supported for special platforms or circumstances that might require them.

It is generally an error to use the same seed file more than once and every use of -rand should be paired with -writerand.

✅ Certificate Verification Options

See the openssl-verification-options(1) manual page.

đŸˇī¸ Name Format Options

See the openssl-namedisplay-options(1) manual page.

🌐 TLS Version Options

Several commands use SSL, TLS, or DTLS. By default, the commands use TLS and clients will offer the lowest and highest protocol version they support, and servers will pick the highest version that the client offers that is also supported by the server.

The options below can be used to limit which protocol versions are used, and whether TCP (SSL and TLS) or UDP (DTLS) is used. Note that not all protocols and flags may be available, depending on how OpenSSL was built.

🔧 Engine Options

đŸ›Ąī¸ Provider Options

🌐 ENVIRONMENT

The OpenSSL library can be take some configuration parameters from the environment. Some of these variables are listed below. For information about specific commands, see openssl-engine(1), openssl-rehash(1), and tsget(1).

For information about the use of environment variables in configuration, see "ENVIRONMENT" in config(5).

For information about querying or specifying CPU architecture flags, see OPENSSL_ia32cap(3), and OPENSSL_s390xcap(3).

For information about all environment variables used by the OpenSSL libraries, see openssl-env(7).

🔗 SEE ALSO

openssl-asn1parse(1), openssl-ca(1), openssl-ciphers(1), openssl-cms(1), openssl-crl(1), openssl-crl2pkcs7(1), openssl-dgst(1), openssl-dhparam(1), openssl-dsa(1), openssl-dsaparam(1), openssl-ec(1), openssl-ecparam(1), openssl-enc(1), openssl-engine(1), openssl-errstr(1), openssl-gendsa(1), openssl-genpkey(1), openssl-genrsa(1), openssl-kdf(1), openssl-mac(1), openssl-nseq(1), openssl-ocsp(1), openssl-passwd(1), openssl-pkcs12(1), openssl-pkcs7(1), openssl-pkcs8(1), openssl-pkey(1), openssl-pkeyparam(1), openssl-pkeyutl(1), openssl-prime(1), openssl-rand(1), openssl-rehash(1), openssl-req(1), openssl-rsa(1), openssl-rsautl(1), openssl-s_client(1), openssl-s_server(1), openssl-s_time(1), openssl-sess_id(1), openssl-smime(1), openssl-speed(1), openssl-spkac(1), openssl-srp(1), openssl-storeutl(1), openssl-ts(1), openssl-verify(1), openssl-version(1), openssl-x509(1), config(5), crypto(7), openssl-env(7), ssl(7), x509v3_config(5)

📜 HISTORY

The list -XXX-algorithms options were added in OpenSSL 1.0.0; For notes on the availability of other commands, see their individual manual pages.

The -issuer_checks option is deprecated as of OpenSSL 1.1.0 and is silently ignored.

The -xcertform and -xkeyform options are obsolete since OpenSSL 3.0 and have no effect.

The interactive mode, which could be invoked by running "openssl" with no further arguments, was removed in OpenSSL 3.0, and running that program with no arguments is now equivalent to "openssl help".

ÂŠī¸ COPYRIGHT

Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at https://www.openssl.org/source/license.html.

openssl(1)
📛 NAME 🚀 Quick Reference 📋 SYNOPSIS 📖 DESCRIPTION đŸ› ī¸ COMMAND SUMMARY
âš™ī¸ Configuration Option 📂 Standard Commands 🧮 Message Digest Commands 🔒 Encryption, Decryption, and Encoding Commands
âš™ī¸ OPTIONS
📌 Common Options 📄 Format Options 🔑 Pass Phrase Options 🎲 Random State Options ✅ Certificate Verification Options đŸˇī¸ Name Format Options 🌐 TLS Version Options 🔧 Engine Options đŸ›Ąī¸ Provider Options
🌐 ENVIRONMENT 🔗 SEE ALSO 📜 HISTORY ÂŠī¸ COPYRIGHT

Generated by phpman v4.10.0-7-g98e9fd5 Author: Che Dong Under GNU General Public License
2026-09-07 02:28 @2600:1f28:365:80b0:6da3:f3b7:3cc7:cae0
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!