Foundations: Linux, scripting, Git & networking
How SSL/TLS works
TLS — still loosely called "SSL" — is what puts the S in HTTPS. It proves a server is who it claims to be, agrees encryption keys over an untrusted network, and protects every byte in transit from reading and tampering. For a Senior DevOps engineer, TLS is operational territory: issuing and rotating certificates with ACM and cert-manager, deciding where TLS terminates on ALBs, NLBs, ingresses and service meshes, debugging handshake failures and broken chains, and making sure a certificate never expires at 2 AM. This topic covers the cryptography you need, the handshake step by step, certificates and PKI, and the AWS/Kubernetes operations.
After this topic you can
- Explain how a TLS handshake and certificates work
- Debug certificate and trust errors
- Manage certificates with ACM and cert-manager
Lessons
-
1The cryptography behind TLS
- What TLS guarantees
- SSL vs TLS
- Symmetric vs asymmetric cryptography
- Hashes, signatures and MACs
- Forward secrecy
-
2Certificates and the chain of trust
- What's in an X.509 certificate
- Certificate authorities and the chain
- Getting a certificate
- Revocation and transparency
- File formats
-
3The TLS handshake step by step
- TLS 1.2 (two round trips)
- TLS 1.3 (one round trip)
- What the client verifies
- SNI and ALPN
- Session resumption
-
4Mutual TLS and service identity
- mTLS
- Service meshes
- Why encrypt internal traffic at all
-
5TLS on AWS
- AWS Certificate Manager (ACM)
- Where TLS terminates
- EKS ingress with ACM
- 6TLS in Kubernetes with cert-manager
-
7Operating and troubleshooting TLS
- The essential commands
- Common errors
- Preventing expiry outages
- A leaked private key
- Certificate pinning
- Performance
-
8Interview questions and model answers
- "Explain how TLS works."
- "Why does TLS use both symmetric and asymmetric encryption?"
- "A site works in Chrome but curl says 'unable to get local issuer certificate'. Why?"
- "Where would you terminate TLS in an EKS setup?"
- "How do you make sure certificates never expire in production?"
- "What is mTLS and when would you use it?"
- "What does forward secrecy mean?"
- "What's the difference between DNS-01 and HTTP-01 validation?"