Concept Focus

Public Key Infrastructure (PKI) is the scaffolding that lets strangers trust each other on hostile networks. It is not a single product; it is the people, policies, software, keys, and protocols that make asymmetric cryptography usable at scale. At its core, PKI reliably answers three questions.

Why PKI exists, the MITM problem

Without PKI, anyone in the middle can swap your peer's public key for their own, decrypt your traffic, then re-encrypt and forward it. PKI defeats this using digitally signed certificates issued by a Certificate Authority (CA) that everyone already trusts.

Core actors and artifacts

Security services PKI enables

Trust chain

PKI trust chain from root CA through intermediate CA to end-entity certificate
The trust chain, from an offline root through intermediates to the end-entity certificate

Certificate lifecycle (X.509)

X.509 certificate lifecycle from enrollment through issuance, status, renewal and destruction
The certificate lifecycle, enrollment, issuance, distribution, status, renewal, destruction

CRL vs OCSP

Comparison of CRL periodic revocation lists versus OCSP real-time status
CRL (periodic) vs OCSP (real-time), prefer OCSP stapling
PKI, cleanly defined

A framework to publish, bind, and validate public keys via X.509 certificates signed by trusted CAs after RA identity proofing. It provides confidentiality, integrity, authentication, and non-repudiation, and enables access control. Status is checked via CRL (periodic) or OCSP (real-time, prefer stapling). Lifecycle discipline, enrollment to destruction, is where real-world PKI succeeds or fails.

Brain Ticklers

Practice Questions — Domain 3 · PKI

Q1. Neuromesh wants real-time revocation checks without leaking which sites users visit to an external responder. What is the best approach?

  1. Plain OCSP from clients to the CA
  2. OCSP stapling from the Neuromesh servers
  3. CRL checks every minute from clients
  4. Certificate pinning on all endpoints

Q2. Anya discovers a dev team exporting private keys to copy between containers. What is the primary control to stop this?

  1. Increase certificate validity to reduce renewals
  2. Use wildcards to simplify deployments
  3. Generate and store keys in an HSM, disable key export
  4. Switch to RSA-4096 from ECDSA

Q3. Which statement about RAs is most accurate in a high-assurance PKI?

  1. RAs issue certificates but cannot revoke them
  2. RAs neither issue nor sign; they vet identities and forward CSRs to the CA
  3. RAs sign OCSP responses for the CA
  4. RAs are optional when using a public CA

Q4. A customer portal cert chains to a trusted root, but browsers still warn. Which misconfiguration is the most likely culprit?

  1. Missing intermediate certificate in the server chain
  2. Using ECDSA instead of RSA
  3. OCSP stapling disabled
  4. CRL nextUpdate too far in the future

Q5. After an API gateway private key compromise, which sequence is most appropriate?

  1. Rotate DNS; renew cert later; investigate quietly
  2. Reissue cert with the same key; add pinning; publish a blog post
  3. Revoke affected certs immediately, generate new keypairs, reissue, redeploy, force OCSP stapling, update inventories, and record the incident internally
  4. Wait for regular renewal, then rotate
Side notes

Short-lived certs beat revocation: a 90-day cert shrinks the risk window dramatically. Don't pin casually; pinning can brick recoveries if the CA path changes. mTLS is not magic; it only works if enrollment, key storage, and revocation are disciplined. Time matters; accurate NTP underpins validity windows, OCSP responses, and non-repudiation.

Key Takeaways
  • PKI is governance + process + tooling, not just certificates.
  • Put the root CA offline, intermediates controlled, keys in HSMs.
  • Prefer automated enrollment (ACME), short-lived certs, and OCSP stapling.
  • Treat the certificate lifecycle like code: inventory, alerts, renewals, rollbacks.
  • Design for revocation at 3 a.m., not as an afterthought.