TLS Handshake Explained in an Easy Way: ClientHello, Certificates & a Real Debugging Story
Автор: overflowbyte
Загружено: 2026-11-23
Просмотров: 21
Описание:
Friday, 18:40. The TLS certificate on the payments API was just renewed. Chrome shows the padlock, but every payment from the mobile app is failing. Same server, same certificate. Why?
We debug it step by step, and learn the TLS 1.3 handshake on the way:
✅ The incident: Android, Java and curl errors that all mean the same thing
✅ Why TLS exists: symmetric vs asymmetric encryption, and why TLS uses both
✅ ClientHello & ServerHello: cipher suites, key share (ECDHE), SNI, ALPN, 1 round trip
✅ Certificates: leaf → intermediate → root, CertificateVerify, what the client checks
✅ Debugging with openssl s_client -servername -showcerts (Verify return code 21)
✅ Root cause: cert.pem vs fullchain.pem, and why browsers hide the bug
✅ Production: TLS termination at the ALB/CDN, re-encryption, mTLS & service mesh
✅ Prevention: cert-manager / ACM, 200 → 47 day lifetimes, expiry monitoring, chain checks in CI
Commands from the video:
openssl s_client -connect host:443 -servername host -showcerts
openssl x509 -enddate -noout -in fullchain.pem
sudo nginx -t && sudo systemctl reload nginx
A realistic composite scenario: hosts are example.com, and times and numbers are illustrative.
⏱️ Chapters
0:00 Friday 18:40: Chrome works, the app doesn't
0:20 Three clients, one complaint
0:55 Why TLS: symmetric vs asymmetric
1:39 Handshake part 1: ClientHello, ServerHello, shared secret
2:26 Handshake part 2: certificate chain & CertificateVerify
3:19 Debugging with openssl s_client
3:57 Root cause: the missing intermediate
4:42 TLS in production: termination, mTLS, service mesh
5:27 Never again: automation, expiry monitoring, CI checks
6:10 Recap
📺 Watch next: IPsec Explained in an Easy Way (Video 33)
🔗 More from OverflowByte
Website · https://overflowbyte.tech
GitHub · https://github.com/Push1697
LinkedIn · / pushpendra16
#TLS #HTTPS #SSL #NetworkSecurity #DevOps #openssl #Certificates #nginx #Kubernetes #sreeleela
TLS handshake, TLS 1.3, how TLS works, HTTPS explained, SSL certificate, certificate chain, intermediate certificate, unable to get local issuer certificate, verify return code 21, openssl s_client, PKIX path building failed, fullchain.pem, nginx ssl, TLS termination, mTLS, mutual TLS, service mesh, cert-manager, ACM, Let's Encrypt, symmetric vs asymmetric encryption, SNI, ALPN, DevOps, SRE, overflowbyte
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: