Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

TLS Troubleshooting

Direct answer

TLS troubleshooting follows the handshake: TCP connection, ClientHello with SNI, version and cipher negotiation, certificate chain and revocation checks, key exchange, then the application protocol. openssl s_client -connect host:443 -servername host shows where it fails.

When to use this

Use it when the cryptographic, certificate or secure-channel question has been narrowed to TLS → TLS Troubleshooting. Capture exact data/peer, algorithm or protocol, key/certificate identity, trust context and expected security property before changing configuration.

First 30 seconds

1. Errors: protocol/cipher mismatch, certificate (expired, name, chain), SNI, middlebox interception, clock skew.

2. Read the alert/error.

3. Test from the failing client's environment.

4. Check TLS inspection proxies.

5. Fix and retest.

Operational verification

client → handshake → validation → session

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

A successful probe shows that probe's client, trust store, SNI, network path and protocol profile, but it does not show every production client, proxy, backend and application request is healthy.

Suspicious evidence: wrong port/protocol, proxy interception, no shared version/suite/group, wrong SNI cert, missing intermediate, stale trust, clock skew, revocation outage, client-cert mapping, 0-RTT/resumption edge or HTTP failure mislabeled TLS.

Platform / version applicability
Cryptography, PKI and secrets
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCryptography, PKI and secrets · Cross-platform security / Cisco / Linux / Windows
Key commandopenssl s_client -connect <host>:443 -servername <host>
Scope / prerequisiteUse it when the cryptographic, certificate or secure-channel question has been narrowed to TLS → TLS Troubleshooting. C…
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Security command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

symptom/client/time → DNS/route/TCP → ClientHello/SNI → negotiation/key exchange → certificate/path/status → Finished/records → application protocol/outcome → minimal change/retest

Step 2 Verify TLS with negotiated protocol, certificate identity and a successful original application exchange Verify boundary

Verify TLS by capturing a fresh handshake and expect the negotiated protocol/cipher to be allowed, the certificate SAN to match the requested SNI, the trust chain to report Valid and no fatal TLS alert to appear. Confirm the application then exchanges the original request successfully over that same TLS session and repeat from the affected client trust context. A completed TLS handshake shows transport security and peer validation for that connection, but it does not show application authorization or backend correctness.

Step 3 Known-good, broken and when it is fixed Verify boundary

Known-good requires the original client to negotiate an approved TLS version/cipher, validate the intended server identity, satisfy mTLS when required, and complete the application request. Confirm deprecated protocol/cipher paths remain rejected if policy requires. A successful TLS handshake shows secure channel establishment for that hop, not HTTP/application authorization or end-to-end encryption through intermediaries.

Step 4 Branch TLS failures at TCP reachability, negotiation, certificate validation, key exchange and application data Narrow the fault

If TLS has no completed TCP connection, verify network and firewall state before changing ciphers. If ClientHello is sent but negotiation returns an alert, compare supported TLS versions, cipher suites, SNI and ALPN. If the server certificate arrives but validation fails, inspect SAN identity, chain, time and revocation. If the handshake completes but application data fails, inspect HTTP or application authentication rather than the TLS certificate. Capture the exact TLS alert and peer certificate so retries do not erase the failed handshake boundary.

Step 5 Native failure isolation and next-check logic Narrow the fault

Identify the exact hostname, port, client and path. Capture handshake metadata or use a diagnostic client to see negotiated version/cipher, SNI, presented chain and alert. If no shared protocol/cipher exists, compare policy on the terminating peers; if certificate validation fails, move to PKI chain/name/time/revocation. For mTLS, distinguish server validation from client-certificate request/selection/authorization. Behind proxies, test both client-to-proxy and proxy-to-origin boundaries.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Port open ≠ TLS service healthy.
  • TLS alert ≠ root cause without peer and state context.
  • Handshake success ≠ HTTP/application success.
  • Works in browser ≠ automated client trust/SNI/protocol path is equivalent.
Key checks
  • openssl s_client -connect <host>:443 -servername <host> </dev/null — handshake errors
  • testssl.sh <host> — full check
  • curl -v https://<host> — client error text
ReferenceWhy it matters1 section · depth on demand

TLS handshake state crosses transport, protocol negotiation, certificate validation and application identity

TLS troubleshooting starts only after transport reachability is confirmed. ClientHello/ServerHello negotiation selects protocol version and cipher suite, certificate exchange establishes server or mutual identity, and key agreement creates session secrets before application data can flow. SNI, ALPN, certificate SANs, trust stores and interception proxies can alter different stages. Record destination, SNI, negotiated version/cipher, certificate fingerprint, alert code and client trust context before changing TLS settings.

ReferenceHow it works1 section · depth on demand

How it works

TLS failure can occur at TCP reachability, SNI/virtual-host selection, protocol/cipher negotiation, certificate presentation/validation, client-certificate authentication or application protocol after encryption is established. TLS 1.2 and 1.3 differ in handshake details, and load balancers/proxies may terminate and originate separate TLS sessions. The certificate observed at one hop may not be the certificate used on the next hop.

ReferenceImportant terms & boundaries1 section · depth on demand

What this shows and what it does not

A successful probe shows that probe's client, trust store, SNI, network path and protocol profile, but it does not show every production client, proxy, backend and application request is healthy.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCryptography, PKI and secrets current

Authoritative/upstream documentation reviewed for bounded claims in TLS → TLS Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc8446 · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
SSL troubleshootingTLS handshake failuresecure connection diagnostics
Embedded reference data

Quick lookup tables

TLS → TLS Troubleshooting proof map

Fast scope, effective cryptographic state, verification and closure boundaries for TLS → TLS Troubleshooting.

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
Confirmation

Confirm action

Continue?