Interview Prep/Networking/TLS, HTTP & Application Layer

Design mutual TLS between two internal services.

IntermediateScenarioTLS, HTTP & Application Layer
Answer

Situation read → Both sides authenticate with certificates; the hard part is issuance and rotation.

What I'd do →

  1. Run an internal CA (Vault PKI, AWS Private CA, or cert-manager with a CA issuer)
  2. Issue short-lived certs (24 hours) to each workload through a sidecar or SPIFFE
  3. Configure the server to require client certs: Nginx ssl_verify_client on; ssl_client_certificate ca.pem;
  4. Test with curl --cert client.crt --key client.key --cacert ca.crt https://svc:8443
  5. Prefer a mesh (Istio, Linkerd) to automate it

Why → Short-lived certs make revocation mostly unnecessary.

Interview tip → Say manual mTLS fails at rotation time, which is why you automate.

All Networking questions Roadmap: Networking for DevOps

More on TLS, HTTP & Application Layer