đ asn1parse, ca, ciphers, cms, crl, crl2pkcs7, dgst, dhparam, dsa, dsaparam, ec, ecparam, enc, engine, errstr, gendsa, genpkey, genrsa, info, kdf, mac, nseq, ocsp, passwd, pkcs12, pkcs7, pkcs8, pkey, pkeyparam, pkeyutl, prime, rand, rehash, req, rsa, rsautl, s_client, s_server, s_time, sess_id, smime, speed, spkac, srp, storeutl, ts, verify, version, x509 â OpenSSL application commands
| Use Case | Command | Description |
|---|---|---|
| đ Generate RSA private key | openssl genrsa -out key.pem 2048 | Creates a 2048-bit RSA private key |
| đ Generate ECDSA private key | openssl ecparam -genkey -name prime256v1 -out key.pem | Generates an ECDSA key for elliptic curve crypto |
| đ Create CSR | openssl req -new -key key.pem -out csr.pem | Generates a Certificate Signing Request |
| đ Self-sign a certificate | openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 | Creates a self-signed certificate valid for 365 days |
| đ Display certificate details | openssl x509 -in cert.pem -text -noout | Prints full certificate information |
| đ Encrypt/decrypt a file | openssl enc -aes-256-cbc -salt -in file -out file.enc | Symmetric encryption with AES-256-CBC |
| đ§Ž Compute message digest | openssl dgst -sha256 file | Generates SHA-256 hash of file |
| đ Test TLS connection | openssl s_client -connect host:port | Tests SSL/TLS handshake with a remote server |
| â Verify certificate chain | openssl verify -CAfile ca.pem cert.pem | Validates certificate against a CA bundle |
| đ Convert PEM to DER | openssl x509 -in cert.pem -outform DER -out cert.der | Changes certificate encoding format |
| âšī¸ Check OpenSSL version | openssl version | Displays installed OpenSSL version and build info |
| đ Benchmark algorithms | openssl speed | Runs performance benchmarks for crypto algorithms |
openssl cmd -help | [-option | -option arg] ... [arg] ...
Every cmd listed above is a (sub-)command of the openssl(1) application. It has its own detailed manual page at openssl-cmd(1). For example, to view the manual page for the openssl dgst command, type "man openssl-dgst".
Among others, every subcommand has a help option.
Initially, the manual page entry for the "openssl cmd" command used to be available at cmd(1). Later, the alias openssl-cmd(1) was introduced, which made it easier to group the openssl commands using the apropos(1) command or the shell's tab completion.
In order to reduce cluttering of the global manual page namespace, the manual page entries without the 'openssl-' prefix have been deprecated in OpenSSL 3.0 and will be removed in OpenSSL 4.0.
Copyright 2019-2020 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.
Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-03 14:35 @216.73.216.75
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)