Advanced › Module 6 › Lesson 1
Cert Lifecycle
Certificate lifecycle literacy — CSR, issuance, validity, renewal, revocation — read chains on $CRYPTO_LAB and public example.com, not prod attack targets.
Visual · t28_cert_lifecycle
Cert lifecycle = named PKI stages. $CRYPTO_LAB + example.com literacy. Original Cyberlium.
Opening
Every TLS trust decision rides a certificate lifecycle — name the stages on YOUR lab CA and public chains before you assess anything.
Certificate lifecycle literacy names PKI stages defenders discuss: key pair generation, Certificate Signing Request (CSR), CA issuance, notBefore/notAfter validity window, renewal before expiry, revocation (CRL/OCSP Module 6-3), and archival. Analyst reads openssl x509 -text output and chain files on $CRYPTO_LAB toy CA or public example.com — understands subject/issuer, SAN, keyUsage, path length — without running padding-oracle or RSA exploit cookbooks against production. Cyberlium on $CRYPTO_LAB: instructor lab CA, your CTF cert files, or openssl s_client against example.com for read-only chain literacy. Refused: forging CA certs for stranger sites, MITM production banking TLS, cert substitution on systems you do not own. Lab row: five lifecycle stages with one defender checkpoint each. chmod 600 under $HOME/cyberlium-lab.
1. Named lifecycle stages
Generate key → CSR → CA sign → deploy → monitor expiry → renew/revoke — six literacy anchors.
Each stage maps to operational controls: HSM generation, automated renewal, expiry alerting.
Command guide
Try these commands — Named lifecycle stages
═══ TOOLS & WEBSITES ═══ Browse / read these (authorized learning only — stay in YOUR lab / program scope)
Optional command
OpenSSL req — https://www.openssl.org/docs/manmaster/man1/openssl-req.html OpenSSL x509 — https://www.openssl.org/docs/manmaster/man1/openssl-x509.html
Let's Encrypt — https://letsencrypt.org/docs/ (public CA contrast)
═══ INSTALL ═══
Linux (Debian/Ubuntu):
Command — copy this
sudo apt install openssl sudo apt install curl
macOS: Built-in
Windows:
Command — copy this
choco install openssl
Built-in (PowerShell: Invoke-WebRequest)
═══ LINUX / macOS ═══
Command — copy this
export CRYPTO_LAB=${CRYPTO_LAB:-$HOME/cyberlium-lab/t28-crypto}
openssl req -new -x509 -days 365 -key "$CRYPTO_LAB/keys/lab-toy-2048.pem" -out "$CRYPTO_LAB/certs/lab-selfsigned.crt" -subj "/CN=cyberlium-lab.local/O=CyberliumLab/C=US"
openssl x509 -in "$CRYPTO_LAB/certs/lab-selfsigned.crt" -noout -subject -dates
curl -sS https://letsencrypt.org/docs/ | head -8Primary tools to practice this lesson: openssl, curl. Reference sites: OpenSSL req (https://www.openssl.org/docs/manmaster/man1/openssl-req.html); OpenSSL x509 (https://www.openssl.org/docs/manmaster/man1/openssl-x509.html); Let's Encrypt (https://letsencrypt.org/docs/). Run every command in the box — install first, then the usage lines — only on YOUR lab / program scope.
2. Reading cert fields
Subject, issuer, SAN, validity dates, signature algorithm, keyUsage — openssl x509 literacy.
Weak signature (SHA-1 legacy) or short RSA key = finding class on hygiene reviews.
3. $CRYPTO_LAB boundary
Lifecycle notes from YOUR lab CA files or example.com chain read — not unauthorized prod MITM.
Refused: forged CA for stranger domains, prod cert substitution, exploit-driven issuance.
4. What you ship: cert lifecycle literacy card
Five lifecycle stages + one defender checkpoint each + NEVER prod MITM line.
5. What you record before the next lesson
Cert lifecycle literacy card path.
6. Wrong vs right: prod crypto oracles vs CTF toys
Worked failure — same MSF word, opposite target. Right never needs a café Wi-Fi or classmate laptop.
Wrong
Forge CA certificate for classmate's domain as 'PKI homework.'
Right
Cert lifecycle literacy card from $CRYPTO_LAB or example.com read. Next: CT Named.
Mission: cert lifecycle literacy card
1) Name five lifecycle stages. 2) One defender checkpoint per stage. 3) Read one openssl x509 field row from lab or example.com. 4) Write NEVER prod MITM line.
Stuck? Ask Cyberlium AI Mentor
Ask Mentor: “notBefore/notAfter — renewal lead time?”
Knowledge Check
APPLY: Cert lifecycle literacy on Cyberlium uses:
Multiple choice
Knowledge Check
APPLY: True or False: Forging CA certs for stranger domains is lab.
True or False
Knowledge Check
APPLY: Certificate validity window uses:
Multiple choice