Browsers trust your server but `curl` and Java clients fail with "unable to get local issuer certificate". What happened?
IntermediateScenarioTLS, HTTP & Application Layer
Answer
Situation read → The server sends only the leaf certificate and browsers fix it by fetching the intermediate.
What I'd do →
- Check the chain:
openssl s_client -showcerts -connect example.com:443 -servername example.com - Confirm only one certificate is sent
- Configure the server with the full chain: in Nginx
ssl_certificate fullchain.pem; - Re-test with
curl -vand with an SSL checker
Why → Browsers cache or fetch intermediates (AIA), but most libraries do not.
Interview tip → Say the leaf must come first and the chain follows in order.
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