Lion Cipher Lab

Build a private certificate authority and issue TLS certificates with OpenSSL

Why it matters

Certificates feel like magic: a padlock appears, and somehow your browser is sure it is really talking to your bank. Most people — including working engineers — never see what is underneath, so 'just add a certificate' becomes a cargo-cult ritual of copied commands and clicked-through warnings. This lab demystifies it completely by making you build the whole thing from scratch with one tool. You create your own certificate authority, issue a real TLS certificate for a local service, serve it, and then watch the precise moment trust switches on: the same request that failed a second ago…

What you'll learn

Steps in this lab

  1. The vocabulary, defined once — CA, key, certificate, chain, CSR
  2. Set up a clean workspace and confirm openssl
  3. Create the CA: a private key and a self-signed root certificate
  4. Create the server's key and a certificate signing request (CSR)
  5. Sign the CSR to issue a leaf certificate — with a SAN extension
  6. Serve it over TLS and watch trust fail, then succeed
  7. Make a browser trust it — by adding YOUR root, not the leaf
  8. Clean up, guard the key, and where this goes next

Open the full interactive lab →