Module 3 · Cryptography and PKI · Lesson 24 of 42

PKI and digital certificates

Certificate authorities, chains of trust, CSRs, revocation with CRL and OCSP, and certificate types.

In this lesson · about 20 minutes

  • Explain how a CA vouches for a public key
  • Walk through requesting a certificate with a CSR
  • Compare CRL and OCSP for checking revocation
  • Recognize wildcard, SAN and self-signed certificates

Asymmetric crypto has a trust problem: how do you know a public key really belongs to bank.com? Public key infrastructure (PKI) solves it with digital certificates: a file that binds a public key to an identity, signed by a certificate authority (CA) you already trust.

The chain of trust

Your browser and operating system ship with a store of trusted root CAs, the root of trust. Roots sign intermediate CAs, which sign server certificates. Your browser checks each signature up the chain to a trusted root.

Getting a certificate

  1. Generate a key pair on the server. The private key never leaves it.
  2. Create a certificate signing request (CSR) containing the public key and identity details.
  3. Send the CSR to a CA, which validates you own the domain (or organization).
  4. The CA signs and returns the certificate. Install it with the private key.

Revocation

If a private key is stolen, the certificate must be revoked before it expires.

  • CRL (certificate revocation list): a list published by the CA. Clients download it periodically, so it can be large and out of date.
  • OCSP (Online Certificate Status Protocol): the client asks about one certificate in real time. OCSP stapling lets the server attach a recent, CA-signed status to the handshake, which is faster and more private.

Certificate types

TypeUse
Wildcard (*.example.com)Covers all first-level subdomains with one certificate; risky if its key leaks
SAN (subject alternative name)Lists several specific names (example.com, shop.example.net) on one certificate
Self-signedSigned by its own key; fine for internal testing, not trusted by browsers
Third-partyIssued by a public CA; trusted by default

Key escrow means a trusted third party keeps a copy of keys so data can be recovered if a key is lost.

Decision scenario

Browser warning after a breach

You are the web administrator for an online shop.

You discover that the private key for your shop's TLS certificate was copied off a compromised server last night. The certificate is valid for another eight months.

What do you recommend?

0 of 4 options explored. Try the others to see how each would play out.

Check your understanding0 of 4 correct

Question 1

1.What does an administrator send to a CA to request a certificate?

Question 2

2.Which allows a browser to check a single certificate's revocation status in real time?

Question 3

3.A company wants one certificate for mail.corp.com, www.corp.com and vpn.corp.com, and nothing else. Which is the BEST choice?

Question 4

4.What does a browser ultimately trust when validating a website's certificate chain?

Quiz score: 0 of 4

Tip: answer every quiz question correctly first.

Noviq Academy is free and for learning. This course is independent and is not affiliated with or endorsed by CompTIA. CompTIA and Security+ are trademarks of CompTIA, Inc. Exam details such as price and policies change; confirm them on CompTIA's website before you book.