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

You moved `status.example.com` to a vendor that serves only HTTP, and browsers now refuse with "You cannot visit status.example.com right now because the website uses HSTS."

AdvancedTroubleshootingDNS, TLS and certificates
Answer

Likely causes → The apex sends Strict-Transport-Security: max-age=31536000; includeSubDomains; preload. Browsers that have seen it (or ship it in the preload list) will only use HTTPS for every subdomain and won't let users click through certificate errors.

Diagnose →

curl -sI https://example.com | grep -i strict-transport

Check whether the domain is on the HSTS preload list (hstspreload.org).

Fix → Give the subdomain a valid HTTPS endpoint, for example put a CDN with a managed certificate in front of the vendor. You can't remove HSTS from users' browsers quickly; even removing the header only helps after max-age passes, and preload removal takes months.

Prevent → Treat includeSubDomains; preload as a one-way door: before enabling it, confirm every current and future subdomain can serve valid HTTPS.

All Real-World Interview questions Roadmap: Interview readiness

More on DNS, TLS and certificates