Pcornel
Security · Security Troubleshooting

TLS Failure

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

Back to the Topic

Answer

TLS Failure isolates handshake or secure-session failures across reachability, protocol negotiation, certificate validation, key exchange, cipher compatibility, client authentication and application-layer transition.

Remember

  • TCP reachable ≠ TLS healthy; the secure handshake can fail after transport establishment.
  • TLS handshake success ≠ application request authorized or healthy.
  • Certificate error ≠ cipher mismatch; identity/trust validation and negotiation are separate boundaries.
  • Disabling verification or lowering TLS policy ≠ safe troubleshooting fix; it can turn a diagnostic into a security regression.

First checks

  • openssl s_client -connect <host>:443 -servername <host> </dev/null — handshake
  • testssl.sh <host> — protocol/cipher support
  • curl -v https://<host> — client error

Commands

openssl s_client -connect <host>:443 -servername <host> -verify_return_error
Read-only/validation observation for TLS handshake, presented chain, SNI target and verification result.
openssl s_client

Verify in this order

client hello → negotiation → validation

Where it usually breaks

First mismatch in signal/report → evidence preservation → scoping/analysis → containment → eradication → recovery → validation/lessons learned; preserve identity/policy/pre-state before mutation.

TLS Failure troubleshooting/evidence map

BoundaryHealthy evidenceSuspicious evidence
Scope / baselineFailing case and known-good comparison are reproducibleSymptom changes across users, devices, paths or time without explanation
Policy / decisionAuthoritative state explains the expected decisionStale, conflicting or unexpected policy/context changes the decision
Enforcement / telemetryRuntime action and same-window telemetry agreeDecision, enforcement and logs disagree or coverage is missing
VerificationOriginal test and security regression both passTemporary recovery, bypass or adjacent regression remains

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

Confirmation

Confirm action

Continue?