PKI explained

PKI for Security+

The short answer

PKI in CompTIA Security+ sits inside the exam's cryptography objective: encryption, certificates, hashing, digital signatures and key management. This page maps each topic, from CSRs and certificate chains to revocation, to a guided lesson, a handbook chapter and a tool, so you can learn how it works rather than memorise terms.

Who it is for
Level
Beginner
Reading time
About 9 minutes
On this page
  1. Where is PKI in Security+?
  2. Security+ PKI topics, mapped to this site
  3. Encryption and key exchange
  4. Hashing and digital signatures
  5. Certificates, CAs and CSRs
  6. Chains, trust stores and revocation
  7. Key management
  8. Which PKI mix-ups should you untangle first?
  9. A short study route
  10. Where to go next
  11. Frequently asked questions
  12. Keep going

Studying for CompTIA Security+ and want PKI to make sense, not just stay a list of acronyms? This page shows where public key infrastructure appears in the exam and which page on this site teaches each piece. It is a study map, not an exam course. It does not replace CompTIA’s official objectives, and no page can promise you a pass.

Where is PKI in Security+?

CompTIA publishes the objectives for each version of the exam, and two versions overlap for a while:

  • Security+ V8, exam SY0-801, is expected to launch on or around 17 November 2026. Its exam page puts cryptography in the General Security Concepts domain, under “Explain the importance of using appropriate cryptographic solutions”, summarised as “Apply encryption, certificates, hashing, digital signatures, and key management practices.”
  • Security+ V7, exam SY0-701, retires in English on 11 June 2027. Its exam page lists “using public key infrastructure (PKI), encryption, obfuscation, hashing, digital signatures, and blockchain” among the general security concepts.

The wording differs, but the core is the same: key pairs, certificates, the authorities that sign them, and the hashes and signatures that hold it all together. We do not copy CompTIA’s objective numbers here. Download the official objectives for the exam code you book, and use this page to understand each item.

Security+ PKI topics, mapped to this site

Each row links a short guided lesson (six to eight minutes), the handbook chapter with the full story, and one more page to read or try.

Encryption and key exchange

Symmetric encryption uses one shared key to encrypt and decrypt. It is fast, and AES is the usual algorithm. Its weakness is sharing the key safely in the first place.

Asymmetric encryption uses a key pair. The public key can be given to anyone; the private key stays with its owner. Data encrypted with the public key can only be decrypted with the matching private key.

Real systems combine the two. In TLS, a key exchange lets both sides agree a fresh session key in public, and symmetric encryption protects the data with it. When the key exchange uses new keys for every session, recordings stay safe even if a server’s long-term key is stolen later. That property is forward secrecy.

Which key does which job: the public key encrypts and verifies, the private key decrypts and signs Keeping data secret (confidentiality) encrypt with the recipient's public key ciphertext travels; anyone may see it only the recipient's private key decrypts Proving who signed (integrity and origin) sign with the signer's private key message and signature travel anyone verifies with the signer's public key The private key never leaves its owner. A certificate vouches for whose public key it is.
Which key does which job. Most PKI mix-ups come from swapping these two rows.

Hashing and digital signatures

A hash function turns any input into a short, fixed-size value, such as a 256-bit SHA-256 digest. Change one byte and the value changes completely. Hashing is not encryption: there is no key and nothing to decrypt. It answers one question, “is this exactly the same data?”

A digital signature is computed from the data, usually through its hash, and the signer’s private key. Anyone with the matching public key can check it. A valid signature proves the data has not changed since it was signed, and which private key signed it. Security texts often call the second part non-repudiation. A signature does not make the data secret, and it does not prove that the signed software is safe.

Certificates, CAs and CSRs

A certificate answers “whose public key is this?” It holds a public key, the names it is for, the issuer, the validity dates and extensions such as key usage, all signed by a certificate authority. The format is X.509, specified in RFC 5280. A certificate does not encrypt anything, and it holds no private key.

To get one, you create a key pair and a certificate signing request (CSR). The CSR carries the public key and the names you ask for, and it is signed with your private key to prove you hold it. The private key never leaves your machine. The CA, sometimes with a separate registration authority, checks the request, for example that you control the domain, and then signs the certificate.

Terms that come up nearby:

Chains, trust stores and revocation

Your device trusts a short list of root certificates in its trust store. Roots rarely sign server certificates directly. They sign intermediate certificates, which sign the server’s certificate. The server sends its certificate and the intermediates, and the client builds a path up to a root it already trusts. A missing intermediate is one of the most common certificate errors in practice (unable to verify the first certificate). The root’s private key is usually kept offline; PKI architecture explains why.

Revocation withdraws a certificate before it expires, for example after a key compromise:

  • A CRL is a signed list of revoked serial numbers that clients download.
  • OCSP asks the CA’s responder about one certificate.
  • OCSP stapling lets the server send a recent signed OCSP answer in the handshake.

Since 15 March 2024: OCSP became optional and CRLs became mandatory for publicly trusted TLS certificates. Many clients do not block a connection when they cannot check revocation, which is one reason certificate lifetimes keep getting shorter. Related ideas are certificate pinning, where an app accepts only a specific key, and Certificate Transparency, the public logs of issued certificates.

Key management

Key management covers a key’s whole life: generating it, storing it, using it, rotating it and destroying it.

  • A hardware security module (HSM) keeps private keys inside tamper-resistant hardware and uses them there. CAs keep their signing keys in HSMs.
  • A TPM is a security chip in most PCs and many servers that protects a device’s keys.
  • Key escrow keeps a protected copy of a key with a trusted party. Escrow keys that encrypt stored data, so the data can be recovered. Do not escrow signing keys: a second copy weakens the proof of who signed.
  • Separation of duties and recorded key ceremonies make sure no single person can misuse a CA key.
  • Every key and certificate needs an owner, an expiry date someone watches, and renewal that is automated. See PKI best practices.

Which PKI mix-ups should you untangle first?

  • Encrypt and sign use opposite keys. The recipient’s public key encrypts and their private key decrypts. The signer’s private key signs and their public key verifies.
  • A hash is not encryption. It cannot be reversed with a key.
  • A certificate is public. It carries a public key. The private key is a separate secret.
  • Root, intermediate and leaf are positions in a chain, not levels of quality.
  • CRL and OCSP both report revocation. One is a list, the other a question about one certificate.

A short study route

  1. Read lessons 2 to 8 of the crash course for the big picture, about nine minutes each.
  2. Work through guided lessons 3, 5, 6, 8, 10, 12, 13 and 16, from the table above.
  3. Use the tools on a real certificate: open one in the certificate decoder, check a server’s chain with the chain checker, and make a CSR with the CSR generator. The key stays in your browser.
  4. Test yourself with The PKI Challenge and the PKI interview questions.
  5. Finally, go through CompTIA’s cryptography objectives for your exam code and explain each item aloud in your own words. Anything you cannot explain is your next page to read.

Where to go next

Free challenge · no account · progress saves hereTake the PKI Challenge — 10–15 minutes15 short trust decisions, explanations after each answer, and a result you can share.

Frequently asked questions

Is PKI a big part of Security+?

It is one area among many, but it reaches further than its share of the objectives suggests. Certificates and key pairs sit underneath secure protocols, VPNs, wireless authentication, code signing and email security. If you understand how a certificate authority signs a certificate and how a client checks the chain, those other topics become much easier to reason about.

Which Security+ version should I study for?

The version you will sit. CompTIA runs an old and a new version side by side for a while, and each has its own objectives document. The PKI ideas on this site apply to both, because they come from the standards rather than from the exam. Check CompTIA's exam page for the dates and download the objectives for the exam code you book.

Is this page an official Security+ study guide?

No. It is a map from the exam's PKI and cryptography topics to explanations on this site. It is not affiliated with or endorsed by CompTIA, and it does not cover the rest of the exam. Use it next to CompTIA's official objectives and your main study material, and use it to understand the ideas rather than to memorise answers.

What is the difference between a CRL and OCSP?

Both tell a client that a certificate was revoked before its expiry date. A CRL is a signed list of revoked serial numbers that the client downloads. OCSP asks the CA's responder about one certificate and gets a signed answer. With OCSP stapling, the server fetches that answer itself and sends it in the handshake, so the client does not have to ask the CA.

Does a certificate contain the private key?

No. A certificate holds a public key, the names it is for, the issuer, the validity dates and the extensions that limit its use, all signed by a certificate authority. The private key stays with its owner. Files such as PKCS #12 bundles can carry both a certificate and its private key, which is why they are protected with a password and handled with care.

Why is a digital signature not just encryption?

Because it does a different job. Encryption keeps data secret, so only the holder of the right key can read it. A signature leaves the data readable and proves two things: that it has not changed, and which private key signed it. Signature algorithms are designed for that purpose, and you verify a signature with the signer's public key.

Early edition. Written with AI assistance and checked against primary sources; an independent expert review is planned. Found a mistake? Tell us.

Last reviewed Edition 0.9