Intermediate Topic 20 of 51 Security & Cryptography
Public Key Infrastructure
Certificates and authorities binding keys to identities.
How it works
Public key infrastructure binds public keys to identities through certificates issued by certificate authorities. A certificate is a signed statement that a public key belongs to a named subject, following the X.509 format, with validity dates, usage constraints and the issuer's signature. Browsers and operating systems trust root CAs, which sign intermediates that issue end-entity certificates, forming a chain. Revocation uses CRLs and OCSP, and certificate transparency logs make issuance publicly auditable.
Step-by-step walkthrough
- A CA verifies who owns a domain.
- It signs a certificate binding the key to the name.
- The server presents it.
- The browser checks the chain up to a trusted root.
- Expired or revoked certificates are rejected.
Where it is used
HTTPS websites, code signing, email security, corporate networks, device identity in IoT and mutual TLS between services depend on PKI. Let's Encrypt automates issuance.
Common pitfall
Expired certificates cause outages, and compromised or mis-issued CAs undermine trust. Self-signed certificates give encryption without identity unless pinned. Private keys must be protected, and revocation checking is unreliable in practice. Automate renewal, use short lifetimes, monitor certificate transparency and validate the full chain and hostname.
Where it fits in the course
Public Key Infrastructure is topic 20 of 51 in Security & Cryptography, rated Intermediate. It follows Digital Signatures. The next topic is Diffie-Hellman Key Exchange.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Security & Cryptography quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Security & Cryptography quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Public Key Infrastructure?
Where do people use Public Key Infrastructure?
What is the most common mistake with Public Key Infrastructure?
What should I learn before this topic?
How can I practice it?
Is Public Key Infrastructure hard to learn?
How long does it take to learn Public Key Infrastructure?
Which topics are related to Public Key Infrastructure?
What should I study after Public Key Infrastructure?
Related topics
- Digital Signatures (Security & Cryptography)
- Diffie-Hellman Key Exchange (Security & Cryptography)
- SHA Family (Security & Cryptography)
- Block Cipher Modes (Security & Cryptography)
- Infrastructure as Code (Distributed Systems & Cloud)