TLS Record & Handshake Evidence
Cheat sheet · https://pcornel.dk/topic.php?topic=316
Answer
TLS encrypts and authenticates traffic on top of TCP. Before data flows, client and server perform a handshake: they agree on a version and cipher, the server presents its certificate, and keys are derived.
Remember
The ClientHello — with the requested server name — and the ServerHello are readable in a capture; in TLS 1.3 everything after is encrypted. Failures are reported as alerts with explicit codes. The client checks three things in the certificate: a trusted chain, valid dates, and the name.
First checks
openssl s_client -connect <host>:443 -servername <host>— the chain, the verification result, the version and cipher agreed.- Add
-tls1_2or-tls1_3— what the server accepts. curl -v https://<host>/— the handshake and any error as a normal client sees it.- Wireshark:
tls.handshake,tls.alert_message.
Commands
openssl s_clientcurl -vopenssl x509
Verify in this order
TCP connects → ClientHello with server name → ServerHello: version and cipher in common → certificate chain trusted, in date, name matches → keys derived, Finished → application data
Where it usually breaks
physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=316