Design an internal PKI for a microservice platform.
AdvancedScenarioTLS, HTTP & Application Layer
Answer
Situation read → Think root protection, issuing CA, automation, revocation and trust distribution.
What I'd do →
- Keep an offline root CA and an online intermediate in Vault PKI or AWS Private CA
- Issue short-lived workload certs (hours) through SPIFFE/SPIRE or the mesh
- Distribute the root via config management and container base images
- Limit certificate SANs and key usage with roles
- Monitor expirations and CA health, and test CA rotation regularly
Why → Short lifetimes plus automation beat CRLs and manual renewal.
Interview tip → Say the intermediate rotation is the test of your design.
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