Interview Prep/Networking/TLS, HTTP & Application Layer

How do you check which certificate a server presents and when it expires?

BeginnerScenarioTLS, HTTP & Application Layer
Answer

Situation read → Basic operational skill.

What I'd do →

  1. Run openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -subject -issuer -dates
  2. Check SANs with -ext subjectAltName
  3. Or use curl -vI https://example.com and read the TLS section
  4. Alert on ssl_expiry with Prometheus blackbox exporter

Why → The -servername flag matters because servers pick a certificate by SNI.

Interview tip → Mention that checking from outside the network also reveals CDN or LB certificates.

All Networking questions Roadmap: Networking for DevOps

More on TLS, HTTP & Application Layer