openssl do?OpenSSL — command-line cryptography and TLS toolkit.
▸ Explain your own openssl command →$ openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
$ openssl s_client -connect example.com:443 -servername example.com
| -x509 | output a self-signed certificate instead of a CSR |
| -new | generate a new request/key |
| -newkey | generate a new key of this type (e.g. rsa:4096) |
| -key | use this existing private key |
| -keyout | write the generated private key to this file |
| -out | write output to this file |
| -in | read input from this file |
| -days | how many days the certificate stays valid |
| -nodes | don't encrypt the private key (no passphrase) |
| -subj | set the subject DN inline (skip the interactive prompts) |
| -sha256 | use SHA-256 as the signature/digest algorithm |
| -text | also print the certificate/key in human-readable text |
| -noout | don't print the encoded (PEM/DER) output |
| -config | use this OpenSSL configuration file |
| -connect | host:port to connect to (s_client) |
| -servername | SNI hostname to send (s_client) |
| -passin | source of the input passphrase |
| -passout | source of the output passphrase |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.