Opscraft
Foundations: Linux, scripting, Git & networking

How SSL/TLS works

Must-know8 lessons · 34 min · 3 tests ·

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.

Stage 1 · Foundations

Know these first

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

  1. 1The cryptography behind TLS 4 min read
    • What TLS guarantees
    • SSL vs TLS
    • Symmetric vs asymmetric cryptography
    • Hashes, signatures and MACs
    • Forward secrecy
  2. 2Certificates and the chain of trust 6 min read
    • What's in an X.509 certificate
    • Certificate authorities and the chain
    • Getting a certificate
    • Revocation and transparency
    • File formats
  3. 3The TLS handshake step by step 4 min read
    • TLS 1.2 (two round trips)
    • TLS 1.3 (one round trip)
    • What the client verifies
    • SNI and ALPN
    • Session resumption
  4. 4Mutual TLS and service identity 3 min read
    • mTLS
    • Service meshes
    • Why encrypt internal traffic at all
  5. 5TLS on AWS 5 min read
    • AWS Certificate Manager (ACM)
    • Where TLS terminates
    • EKS ingress with ACM
  6. 6TLS in Kubernetes with cert-manager 3 min read
  7. 7Operating and troubleshooting TLS 5 min read
    • The essential commands
    • Common errors
    • Preventing expiry outages
    • A leaked private key
    • Certificate pinning
    • Performance
  8. 8Interview questions and model answers 4 min read
    • "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?"