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.
TLS Troubleshooting
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.
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.
client → handshake → validation → session
Context & applicabilityCommon mistakes · platform/version boundaries
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.
Operational reference
Fast context before you go deeper.
openssl s_client -connect <host>:443 -servername <host>Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- 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.
openssl s_client -connect <host>:443 -servername <host> </dev/null— handshake errorstestssl.sh <host>— full checkcurl -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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
Quick lookup tables
TLS → TLS Troubleshooting proof map
Fast scope, effective cryptographic state, verification and closure boundaries for TLS → TLS Troubleshooting.
| Boundary | Establish | Does not establish |
|---|---|---|
| Scope and intent | Asset/data/peer, security property, identity/name, protocol and time | Does not prove algorithm, key, trust or endpoint correctness |
| Effective cryptographic state | Exact version, algorithm/mode/parameters, key/certificate/path and negotiated result | Configuration or object presence does not prove correct use |
| Verification outcome | Positive, negative, tamper, expiry/revoke and failure tests correlated with evidence | One success does not prove every peer, client, path or lifecycle stage |
| Closure | Original operation succeeds; old/unsafe state is retired and regression checks pass | Administrative workflow completion alone is not closure |