All tags
openssl
Narrow down
Network13
- Tip
openssl s_client -connect 203.0.113.10:443 -servername example.com </dev/null | openssl x509 -noout -subjectopenssl s_client -servername shows which certificate a shared IP servesSends a chosen host name in the TLS handshake so you see that site's certificate.3 Dec 2026 - Tip
openssl x509 -in site.pem -noout -pubkey | openssl sha256openssl can tell you if a private key belongs to a certificateCompare the public key inside a certificate with the one derived from a private key.30 Nov 2026 - Tip
openssl ciphers -v 'ECDHE+AESGCM'openssl ciphers -v expands a cipher string into the real listSee exactly which cipher suites a config string like ECDHE+AESGCM allows.30 Nov 2026 - Tip
echo | openssl s_client -connect example.com:443 -servername example.com -showcerts 2>/dev/null \Openssl s_client -showcerts saves the chain a server sendsGrab every certificate a server presents, so you can inspect or verify the chain offline.30 Nov 2026 - Tip
openssl x509 -inform der -in cert.cer -out cert.pemopenssl x509 -inform der turns a binary certificate into PEMConvert a .cer or .der certificate into the text PEM format Linux software expects.30 Nov 2026 - Tip
echo | openssl s_client -connect example.com:443 -servername example.com -status 2>/dev/null \Openssl s_client -status shows whether a server staples OCSPSee if a server sends a stapled OCSP response with its certificate, and what it says.30 Nov 2026 - Tip
openssl storeutl -noout -certs fullchain.pemopenssl storeutl lists every certificate in a bundle fileSee all certificates in a chain or CA bundle, since x509 only reads the first one.30 Nov 2026 - Tip
openssl s_server -accept 8443 -cert cert.pem -key key.pem -wwwopenssl s_server -www starts a throwaway HTTPS test serverRun a tiny TLS server to test a certificate, a client or a firewall rule.30 Nov 2026 - Tip
openssl req -new -key site.key \openssl req -addext puts extra host names in a certificate requestMake a CSR with several Subject Alternative Names in one line, without a config file.30 Nov 2026 - Tip
openssl pkcs12 -in site.pfx -nokeys -clcerts -out cert.pemopenssl pkcs12 -in gets the certificate and key out of a .pfx fileSplit a PKCS#12 bundle from Windows or a NAS export into PEM files for Linux software.30 Nov 2026 - Tip
openssl pkcs12 -export -inkey site.key -in site.pem \openssl pkcs12 -export packs a key and certificate into one .pfx fileCombines a private key, certificate and chain into one password-protected .pfx file.27 Nov 2026 - Tip
openssl verify -show_chain -CAfile root.pem -untrusted intermediate.pem cert.pemopenssl verify -untrusted checks a certificate chain before you install itChecks whether a certificate and its intermediates form a valid chain before you deploy them.27 Nov 2026 - Tip
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -datesOpenssl s_client shows when a site's certificate expiresPrints the start and end date of a website's TLS certificate from the terminal.19 Nov 2026
Other tips9
- Tip
printf %s hello | openssl dgst -sha256 -hmac secretOpenssl dgst -hmac signs a message with a shared secretComputes an HMAC of a file or text with a secret key, as used for webhook signatures.3 Dec 2026 - Tip
openssl pkcs12 -legacy -in old.pfx -nokeysopenssl pkcs12 -legacy opens an old .pfx that OpenSSL 3 refusesLoads the legacy provider so OpenSSL 3 can read a .pfx made with RC2 or 3DES.3 Dec 2026 - Tip
echo 'aGVsbG8gd29ybGQ=' | openssl base64 -dOpenssl base64 -d decodes base64 on any system that has OpenSSLEncode and decode base64 with one command that works the same on Linux, macOS and BSD.30 Nov 2026 - Tip
| openssl s_client -connect example.com:443 -servername example.com -quiet -keylogfile keys.logOpenssl s_client -keylogfile lets Wireshark decrypt your own TLS testWrite the TLS session secrets to a file so a packet capture of that connection can be decrypted.30 Nov 2026 - Tip
openssl version -dopenssl version -d shows where OpenSSL looks for its config and CA storeFind the folder OpenSSL uses for openssl.cnf and trusted certificates on this machine.30 Nov 2026 - Tip
openssl req -in site.csr -noout -text -verifyopenssl req -verify checks a CSR before you hand it to a CAInspect a certificate signing request and check its signature, so a typo does not cost a reissue.30 Nov 2026 - Tip
openssl errstr 0A000086openssl errstr turns an error code into a readable messageDecode the hex error codes that OpenSSL based programs print in logs.30 Nov 2026 - Tip
openssl genpkey -algorithm ed25519 -out ed.keyopenssl genpkey makes Ed25519, EC or RSA keys with one commandGenerate any type of private key with the modern genpkey command instead of genrsa.30 Nov 2026 - Tip
openssl rand -base64 32openssl rand -base64 32 makes a strong random secret in one linePrints random bytes from a secure generator, encoded as base64 or hex, for use as a password or key.25 Nov 2026
Security8
- Tip
openssl x509 -in cert.pem -days 365 -signkey key.pem -out cert-new.pemopenssl x509 -signkey renews a self-signed certificate with the same keyRe-signs an existing self-signed certificate with new dates, keeping its key and extensions.3 Dec 2026 - Tip
openssl enc -aes-256-cbc -pbkdf2 -salt -in notes.txt -out notes.txt.encopenssl enc needs -pbkdf2 when you encrypt a file with a passwordEncrypt and decrypt a single file with a password the safer way openssl enc offers.30 Nov 2026 - Tip
openssl passwd -6openssl passwd -6 makes a SHA-512 password hash for LinuxGenerate a crypt style password hash for cloud-init, Ansible or a user account.30 Nov 2026 - Tip
openssl pkey -in site.key -aes256 -out site-enc.keyopenssl pkey adds or removes the passphrase on a private keyEncrypt a private key file with a passphrase, or take it off for a service that cannot ask.30 Nov 2026 - Tip
openssl speed -evp aes-256-gcmopenssl speed shows how fast a machine encryptsBenchmark AES and other algorithms on a NAS, Pi or VPS before you pick a cipher or VPN.30 Nov 2026 - Tip
openssl s_client -starttls smtp -connect mail.example.com:587 -servername mail.example.com -briefopenssl s_client -starttls smtp checks the certificate of a mail serverOpens a STARTTLS session to a mail server and shows the certificate and TLS details.28 Nov 2026 - Tip
openssl req -x509 -newkey rsa:2048 -days 365 \openssl req -x509 makes a self-signed test certificate in one commandCreates a private key and a self-signed certificate with a subjectAltName, for testing HTTPS locally.25 Nov 2026 - Tip
openssl x509 -fingerprint -sha256 -noout -in cert.pemopenssl x509 -fingerprint prints a certificate's SHA-256 fingerprintPrints the SHA-256 fingerprint of a PEM certificate, for comparing with a value you trust.25 Nov 2026
Storage2
- Tip
openssl x509 -req -in nas.csr \openssl x509 -req signs a server certificate with your own CATurn a CSR into a certificate signed by a homelab CA, keeping the host names from the request.30 Nov 2026 - Tip
openssl dgst -sha256 -sign private.pem -out backup.tar.gz.sig backup.tar.gzopenssl dgst -sign and -verify sign a file with your own keyProve a file came from you and was not changed, using a key pair and two commands.30 Nov 2026
Shell1
Web1
Nothing matches.