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 →
- Run an internal CA (Vault PKI, AWS Private CA, or cert-manager with a CA issuer)
- Issue short-lived certs (24 hours) to each workload through a sidecar or SPIFFE
- Configure the server to require client certs: Nginx
ssl_verify_client on; ssl_client_certificate ca.pem; - Test with
curl --cert client.crt --key client.key --cacert ca.crt https://svc:8443 - 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.
More on TLS, HTTP & Application Layer
Explain what happens in a TLS 1.3 handshake in a few sentences.BeginnerYour site must redirect all HTTP traffic to HTTPS. How do you do it?BeginnerWhat is the difference between 4xx and 5xx errors, and which ones do you see most in networking problems?BeginnerHTTP/1.1, HTTP/2 and HTTP/3: what changed and why does it matter in operations?BeginnerThe browser console shows a CORS error when your frontend calls your API. What is it and how do you fix it?BeginnerHow do you check which certificate a server presents and when it expires?Beginner