Interview Prep/Real-World Interview/DNS, TLS and certificates

Overnight, old IoT devices and an Ubuntu 16.04 batch server stopped connecting to your API, while modern clients are fine. Nothing changed on your side.

AdvancedTroubleshootingDNS, TLS and certificates
Answer

Likely causes → A root or cross-signed certificate in your chain expired, and old clients can't build the alternate path. The classic example is the September 2021 expiry of Let's Encrypt's DST Root CA X3: OpenSSL 1.0.x clients failed even though ISRG Root X1 was valid, because they stopped at the expired cross-sign.

Diagnose →

openssl s_client -connect api.example.com:443 -servername api.example.com -showcerts </dev/null | grep -E 's:|i:'
openssl version   # on the failing client

Check the expiry of every cert in the chain, not only the leaf.

Fix → Serve a chain that old clients can validate (for example a shorter chain, or a different CA), or update the clients' CA bundles and OpenSSL. For devices you can't update, give them a separate endpoint with a compatible chain.

Prevent → Track root and intermediate expiry dates, test new chains against your oldest supported clients, and inventory device firmware that pins CA bundles.

All Real-World Interview questions Roadmap: Interview readiness

More on DNS, TLS and certificates