Lion Cipher Lab

Inspect a TLS connection and certificate with openssl s_client

Why it matters

A browser padlock is a single icon standing in for four separate facts: the connection is encrypted, it is encrypted to a specific hostname, a certificate authority vouched for that identity, and the certificate has not expired. openssl lets you open the connection yourself and read every one of those facts from the raw bytes — the same bytes the browser checks silently on every HTTPS page load, and more detail than any padlock will ever show you. That is a foundational defensive skill: triaging a certificate warning, confirming your own site's certificate is valid and not about to expire,…

What you'll learn

Steps in this lab

  1. What TLS and a certificate are — and the ground rules
  2. Install openssl and confirm it runs
  3. Open a real TLS connection and read the chain
  4. Extract and decode the certificate with x509
  5. Verify hostname coverage and check for expiry
  6. Read the negotiated protocol and cipher
  7. Spot the problems on purpose with badssl.com
  8. What you just learned — and the honest limit

Open the full interactive lab →