openssl Cheatsheet

Top commands.

Overview

openssl is the standard TLS, certificate, and crypto toolbox for command-line work. Five primitives carry most operational use during cert and TLS investigation: certificate inspection, handshake debugging via s_client, CSR generation, PEM/DER/PKCS12 format conversion, ad-hoc crypto operations. Fluency turns "the cert is broken" into a specific finding within seconds.

The approach

Inspect first, debug the handshake with s_client, convert formats when tooling demands it, verify chains explicitly. Five idioms cover most operational openssl use; memorising them moves the team from "ask the security team" to confident self-service.

Why this compounds

Each TLS investigation that the operator can run themselves shortens the next one. The team's TLS muscle grows from "open a ticket with security" to confident self-service. Scripted openssl checks become certificate health monitors that surface expirations a month before alerts fire.