openssl s_client -connect <host>:443

Inspect a live TLS certificate chain

Enter a hostname to fetch its live TLS certificate. Shows the server-presented chain, completes it toward a trust anchor where safely possible, and reports hostname and trust validation separately from inspection — a broken certificate can still be inspected.

Examples: github.com cloudflare.com expired.badssl.com