# Basic β dumps the full TLS handshake and certificate chainopenssls_client-connectexample.com:443</dev/null
# Show only the leaf certificate detailsopenssls_client-connectexample.com:443</dev/null2>/dev/null\|opensslx509-text-noout
# Use SNI (required for virtual-hosted servers)openssls_client-connectexample.com:443-servernameexample.com</dev/null
# Local fileopensslx509-incert.pem-noout-dates
# Remote β print expiry date onlyopenssls_client-connectexample.com:443-servernameexample.com</dev/null2>/dev/null\|opensslx509-noout-enddate
# Verify cert against a CA bundleopensslverify-CAfileca.pemcert.pem
# Verify a full chain (intermediate + root)opensslverify-CAfileroot.pem-untrustedintermediate.pemcert.pem
# Verify against the system CA storeopensslverifycert.pem
Check that a certificate, key, and CSR match
The modulus (or public key hash) must be identical across all three.
# List supported ciphers for a serveropenssls_client-connectexample.com:443-cipher'ALL'</dev/null2>&1|grepCipher
# Force a specific TLS versionopenssls_client-connectexample.com:443-tls1_2</dev/null
openssls_client-connectexample.com:443-tls1_3</dev/null
# Key + self-signed cert in one command (dev/testing only)opensslreq-x509-newkeyrsa:4096-keyoutkey.pem-outcert.pem\-days365-nodes\-subj"/C=FR/ST=IDF/L=Paris/O=Acme/CN=example.com"
Warning
Self-signed certificates are not trusted by browsers or clients by default. Use a proper CA for anything beyond local testing.
# With an existing keyopensslreq-new-keykey.pem-outcsr.pem\-subj"/C=FR/ST=IDF/L=Paris/O=Acme/CN=example.com"# Generate key + CSR in one stepopensslreq-newkeyrsa:4096-nodes-keyoutkey.pem-outcsr.pem\-subj"/C=FR/ST=IDF/L=Paris/O=Acme/CN=example.com"# Inspect the CSRopensslreq-incsr.pem-text-noout
Generate a CSR with Subject Alternative Names (SANs)
# 1. Generate the CA private keyopensslgenrsa-aes256-outca.key4096# 2. Generate the self-signed CA certificate (valid 10 years)opensslreq-x509-new-nodes-keyca.key\-sha256-days3650-outca.crt\-subj"/C=FR/O=Acme CA/CN=Acme Root CA"
# Extract everything (cert + key + CA chain)opensslpkcs12-inbundle.p12-outbundle.pem-nodes
# Extract only the certificateopensslpkcs12-inbundle.p12-nokeys-outcert.pem
# Extract only the private keyopensslpkcs12-inbundle.p12-nocerts-nodes-outkey.pem