Pcornel
Security

TLS

Cheat sheet · https://pcornel.dk/topic.php?topic=409

Back to the Topic

Answer

TLS establishes an authenticated protected transport channel by negotiating protocol parameters, authenticating one or both peers, deriving traffic keys and protecting records against eavesdropping and tampering.

Remember

  • TCP connection ≠ TLS handshake success.
  • TLS encryption ≠ application authorization or content safety.
  • Certificate sent ≠ certificate validated.
  • Negotiated TLS 1.3 ≠ every surrounding PKI, endpoint and application boundary secure.

First checks

  • openssl s_client -connect <host>:443 -servername <host> </dev/null — negotiated TLS
  • testssl.sh <host>:443 — full TLS audit
  • nmap --script ssl-enum-ciphers -p 443 <host> — supported ciphers

Commands

openssl s_client -connect <host>:443 -servername <host>
Local state
openssl s_client

Verify in this order

client hello → negotiation → certificate validation → encrypted session

Where it usually breaks

First mismatch in key/secret generation → storage/rotation → trust/certificate validation → protocol negotiation → cryptographic operation → peer/application verification; preserve identity/policy/pre-state before mutation.

TLS proof map

BoundaryEstablishDoes not establish
Scope and intentAsset/data/peer, security property, identity/name, protocol and timeDoes not prove algorithm, key, trust or endpoint correctness
Effective cryptographic stateExact version, algorithm/mode/parameters, key/certificate/path and negotiated resultConfiguration or object presence does not prove correct use
Verification outcomePositive, negative, tamper, expiry/revoke and failure tests correlated with evidenceOne success does not prove every peer, client, path or lifecycle stage
ClosureOriginal operation succeeds; old/unsafe state is retired and regression checks passAdministrative workflow completion alone is not closure

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=409

Confirmation

Confirm action

Continue?