Skip to content
Free · Open-source tools · No experience needed

Learn certificates by building them.

Whether you're curious, studying, or managing systems, pki.fun walks you from “what is a certificate?” to running your own CA, mutual TLS and EAP-TLS — on your own machine.

Your first CA, in one command
step ca init --name "Lab CA" \
--dns localhost --address 127.0.0.1:9000 \
--provisioner admin@example.com
Expected output (excerpt)
✔ Root certificate: ~/.step/certs/root_ca.crt
✔ Intermediate certificate: ~/.step/certs/intermediate_ca.crt

Three tracks, one real build

Each track mixes short explanations with labs you run yourself. Follow them in order, or jump to what you need.

PKI

Keys, certificates, CAs and chains of trust — explained plainly, then built for real.

mTLS

Make clients and servers prove who they are. Lock down a service with nginx and client certificates.

EAP-TLS

Join networks with certificates, not passwords, using FreeRADIUS and 802.1X.

New to the command line?

Lab Setup walks you through installing everything on Linux, macOS or Windows.

Set up your lab