Security+ SY0-801 Cryptography: PKI, Certificates, Encryption and Hashing
Cryptographic solutions are the tools that keep data confidential, prove its integrity and origin, and establish trust between systems: symmetric and asymmetric encryption, public key infrastructure (PKI) and certificates, key exchange, hashing, salting, digital signatures, key-protection hardware and obfuscation. Security+ objective 1.3 asks you to explain why choosing the appropriate one matters, which in practice means knowing which key does what, which certificate fits which audience, which encryption level protects against which threat, and which algorithm or protocol fits a stated constraint. This lesson works through every part of the objective with the distinctions that decide scenario questions.
On this page10 sections
- Symmetric vs asymmetric encryption
- PKI key roles: public keys, private keys and key escrow
- Certificate authorities, the chain of trust and self-signed certificates
- Certificate signing requests (CSRs) and wildcard certificates
- Certificate revocation: CRLs vs OCSP
- Encryption levels: full disk, partition, volume, file, database and record
- Transport encryption, protocols and key exchange
- Algorithms and key length
- Hashing, salting and digital signatures
- Cryptographic tools and obfuscation
- Choose between symmetric, asymmetric and hybrid encryption, and apply the right public or private key for confidentiality and for signatures
- Explain key escrow, its risk, and why encryption keys are escrowed but signing keys are not
- Describe how CAs, intermediates and the root of trust validate a certificate, and when to use self-signed, internal-CA or third-party certificates
- Explain CSR generation, wildcard and SAN coverage, and CRL versus OCSP revocation checking including stapling and soft-fail
- Select the encryption level (full disk, partition, volume, file, database, record) and transport protocol that fits a requirement
- Explain Diffie-Hellman key exchange, forward secrecy, algorithm choice and the effect of key length
- Distinguish hashing, salting, digital signatures, cryptographic tools (TPM, HSM, KMS, secure enclave) and obfuscation, including tokenization versus encryption, hashing and masking
Symmetric vs asymmetric encryption
Symmetric encryption uses one shared secret key to both encrypt and decrypt; asymmetric encryption uses a mathematically linked key pair, where what one key encrypts only the other can decrypt. Symmetric ciphers such as AES are fast and produce ciphertext about the size of the plaintext, so they do the bulk work. Their weakness is key distribution: both parties must already hold the same secret, and getting it to the other side safely is the problem. Asymmetric algorithms such as RSA and elliptic-curve cryptography (ECC) solve distribution, because the public half can be shared openly, but they are far slower and RSA can only process small blocks.
| Symmetric | Asymmetric | |
|---|---|---|
| Keys | One shared secret key | A public key and a private key per party |
| Speed | Fast; suited to large data | Slow; used on small values (keys, hashes) |
| Main problem | Distributing the secret key safely | Performance; trusting whose public key it is |
| Examples | AES, ChaCha20 | RSA, ECC (ECDH, ECDSA), Diffie-Hellman |
| Keys for n people, every pair private | One per pair: n(n-1)/2 | One pair per person: 2n keys |
The key-count row shows how badly symmetric schemes scale. Symmetric keys grow with the number of pairs that must talk privately, so the count rises roughly with the square of the group size: a team of 10 already needs 10 x 9 / 2 = 45 keys, and every new member adds a key for each existing member. Asymmetric keys grow with the number of people: each person holds one key pair (two keys), because anyone can encrypt to a member's published public key, so the same team of 10 needs 20 keys.
Hybrid encryption
Real systems combine the two, each doing the job it is good at. The sender generates a random symmetric session key, encrypts the data with it, then encrypts (wraps) that short key with the recipient's public key. Only the recipient's private key can unwrap the session key, so no secret had to be shared in advance, and the expensive asymmetric operation runs once on a few dozen bytes however large the data is. TLS, S/MIME and PGP all work this way: asymmetric cryptography moves or agrees the key, symmetric cryptography moves the data.
PKI key roles: public keys, private keys and key escrow
Public key infrastructure (PKI) is the set of key pairs, certificates, certificate authorities and policies that let people trust whose public key is whose. Every asymmetric operation follows two rules, and most questions on key roles come down to choosing the right owner and the right half:
| Goal | Key used to apply it | Key used to check or reverse it |
|---|---|---|
| Confidentiality (only the recipient can read) | Encrypt with the recipient's public key | Recipient decrypts with their private key |
| Proof of origin (digital signature) | Sign with the sender's private key | Anyone verifies with the sender's public key |
The public key is meant to be published: distributing it in a certificate, a directory or a key server lets anyone send you encrypted data or verify your signatures. The private key must never leave its owner. Using the wrong half breaks the goal: something "encrypted" with the sender's private key can be reversed by anyone holding the sender's public key, so it gives no confidentiality, and encrypting to your own public key locks the recipient out. To send a message that is both confidential and provably yours, do both: sign with your private key and encrypt with the recipient's public key.
Because only the private key decrypts, losing it loses the data. The public half keeps working for senders after the private half is gone, so data can go on being encrypted to a key that nobody can use any more; a user whose smart card is wiped, for example, can no longer open any mail encrypted to that card's key. Private keys of encryption key pairs therefore need protected backups or escrow.
Key escrow
Key escrow means a trusted third party (or a tightly controlled internal custodian) holds copies of keys so encrypted data can still be recovered when the original key, or its holder, is unavailable: a failed device, a forgotten passphrase, or a lawful demand for access. Its purpose is recovery of data that already exists; it does not replace keys, agree new keys or strengthen passwords.
Escrow has a cost: the escrow store concentrates many users' keys in one place, so whoever compromises or abuses it can decrypt everyone's data. It needs strong access control, dual control and auditing. It also has a limit on which keys belong there. Escrow the keys that decrypt data (the private keys of encryption key pairs), so data stays recoverable; never escrow signing keys, because a signature proves origin only if the signer alone holds the key; a copy in escrow would let the custodian sign as that person and destroy non-repudiation. The two rules can only both be met when a person's encryption key and signing key are different keys, which is why PKI designs commonly separate the two purposes.
Certificate signing requests (CSRs) and wildcard certificates
A certificate signing request (CSR) is the message a requester sends to a CA asking for a certificate: it contains the public key and the subject details (such as the common name and subject alternative names) and is signed with the matching private key to prove possession. CSR generation follows a fixed order:
- Generate the key pair where the key will live: on the server, or inside its HSM.
- Build the CSR from the public key and the subject details, and sign it with the private key.
- Send only the CSR to the CA. The CA validates the requester's control of the names and returns a certificate binding that public key to the identity.
- Install the certificate next to the private key that already exists on the host.
The CSR holds only public information, so it can be emailed or pasted into a web form; the private key never travels as part of the process. Two consequences follow. First, a certificate contains only the public key, so it is useless to a service without its matching private key: when a service moves to new hardware, either the key pair moves with the certificate (for example as a password-protected PKCS#12/.pfx bundle) or a fresh key pair and CSR are created at the destination and a new certificate issued. Second, the rule extends to hardware: a smart card or HSM that must hold a key creates the key pair itself and signs the CSR internally, so the key is never exported in any form.
Wildcard and SAN certificates
A wildcard certificate uses an asterisk as the leftmost label, such as *.example.net, and matches exactly one label in that position: mail.example.net and intranet.example.net match, and so does a host added after issuance. It does not match the bare (apex) domain example.net, nor names two or more labels deep such as a.b.example.net. Public CAs allow the asterisk only once, as the entire leftmost label.
A subject alternative name (SAN) certificate lists specific names, and modern certificates carry all their names in the SAN field. SAN entries and wildcards combine freely: a wildcard is just one entry in the SAN list, so a single certificate can carry the apex name, a wildcard and any specific deeper names side by side.
| Need | Fits |
|---|---|
| Any current or future host one level under a domain | Wildcard |
| A fixed list of different names, including the apex or deeper names | SAN entries (reissue to add names) |
| Proof of how thoroughly the organization was vetted | Validation level (DV, OV, EV): unrelated to which names are covered |
Wildcards carry a risk: every server that holds the wildcard's private key can impersonate every matching subdomain. The more servers share one wildcard key, the more places it can leak from, and the weakest of them sets the security of every name the wildcard covers; a single leak means revoking the certificate and rekeying every host that used it. Separate certificates (or keys) per service limit that blast radius.
Certificate revocation: CRLs vs OCSP
Revocation withdraws trust in a certificate before it expires, typically because its private key was compromised or its holder left, and clients learn about it through a certificate revocation list (CRL) or the Online Certificate Status Protocol (OCSP).
| CRL | OCSP | |
|---|---|---|
| What the client gets | A CA-signed list of every revoked serial number, downloaded from a CRL distribution point | A CA-signed answer about one certificate: good, revoked or unknown |
| Freshness | Only as fresh as the last publication (and the client's cache); a delta CRL lists changes since the last full CRL but is still a scheduled list | Reflects the responder's current status at the time of the query |
| Cost | Lists grow large; clients cache them | One small query per certificate, but the CA sees which sites clients visit, and every connection waits for the answer |
The weakness of CRLs is latency. A client keeps accepting a revoked certificate until it holds a list published after the revocation, so the exposure window is roughly the publication interval plus however long clients cache each list. Only two things shorten it: publishing (and fetching) lists more often, or checking status at connection time with OCSP.
OCSP stapling and soft-fail
With OCSP stapling, the web server periodically fetches its own CA-signed OCSP response and includes it in the TLS handshake. Each client receives its status answer inside the handshake instead of looking it up separately, so connections are not held up by an extra lookup, the responder's load drops to one request per server, and the CA no longer learns each user's browsing. The response is still signed by the CA, so the server cannot forge a "good" status. A certificate can be marked must-staple, telling clients to refuse a connection that arrives without a stapled response.
Revocation only protects users if clients act on it. Many clients soft-fail: if no stapled response is sent and the OCSP responder cannot be reached, they treat the missing answer as a pass and connect. Revocation then protects only against attackers who cannot interfere with status checks; anyone able to suppress the answer suppresses the revocation. Hard-fail behaviour, or must-staple certificates, make a missing answer a failure instead.
Practice is shifting: the CA/Browser Forum made OCSP optional for publicly trusted TLS certificates, and some public CAs (Let's Encrypt among them) have stopped running OCSP and publish CRLs only, while browsers increasingly push revocation data to clients themselves. The concepts above, and both mechanisms, remain exactly what the exam objective lists.
Encryption levels: full disk, partition, volume, file, database and record
The encryption level is the scope at which data is encrypted, and it decides who the encryption protects against: storage-level encryption protects data when the device is off or stolen, while file-, database- and record-level encryption keep data protected from people and systems that can use the running device.
| Level | What it encrypts | Protects against | Does not protect against |
|---|---|---|---|
| Full disk (FDE), e.g. BitLocker, FileVault, self-encrypting drives | The whole drive, including the operating system | Loss or theft of a device that is powered off | Anyone using the unlocked, running system; files copied off the disk |
| Partition | One partition of a disk; other partitions stay plain | Theft of the drive, for the data on that partition | The same running-system exposure as FDE; data on unencrypted partitions |
| Volume | A logical volume, which may span several disks or be a container file | Theft of the storage, for that volume | Users and processes of the running system; files that leave the volume |
| File | Individual files or folders | Exposure of the file wherever it goes: email, cloud share, USB | Someone who has the file's key |
| Database (e.g. transparent data encryption) | Database files, logs and backups at rest | Theft of the database files or backups | Any authorized database session, including administrators, since it decrypts transparently |
| Record (field, column or cell) | Specific sensitive values inside the database | Anyone who can query the database but lacks the key, including DBAs | The application or users that hold the key |
Two patterns explain most scenarios. First, every storage-level layer decrypts transparently once unlocked. While a server's encrypted volume is mounted, any process or user with file permissions reads plaintext; the encryption matters again only when the volume is dismounted or the machine is off. Storage-level encryption also stays with the storage: a file copied to a USB stick, a cloud share or an attachment is no longer covered by the disk it came from, and transport encryption covers only one network hop. Protection that must follow the data wherever it goes has to be applied to the file itself.
Second, to hide data from people who can legitimately query a database, encrypt the fields, not the storage. Transparent database encryption and every storage layer beneath it decrypt for any authorized session, so they cannot separate one authorized group from another. Encrypting a sensitive column, such as salaries in an HR database, with keys released only to the application that needs it keeps the values readable to that application and opaque to everyone else who can query the table, administrators included. Tokenization, covered with obfuscation below, is the alternative when systems need to keep referring to a value without holding it at all.
Transport encryption, protocols and key exchange
Transport (communication) encryption protects data while it moves across a network, and the right protocol depends on what has to be protected: one application's sessions, a remote shell, mail between servers, or every packet between hosts or networks.
| Protocol | Layer and scope | Typical use |
|---|---|---|
| TLS (HTTPS, LDAPS, FTPS, SMTPS and others) | Per application session; the application must support it | Web, APIs, directory queries; TLS-based ("SSL") VPNs that tunnel everything over TCP 443 |
| STARTTLS | Upgrades an existing plaintext session to TLS on the same port | Encrypting SMTP between mail servers with no change for users |
| S/MIME, PGP | The message itself, end to end, using user certificates or keys | Signed and encrypted email that stays protected in mailboxes |
| SSH | An encrypted, authenticated session to one host, with per-port forwarding | Remote command line (replaces Telnet), SFTP, ad hoc tunnels |
| IPsec | Network layer: every packet between two hosts (transport mode) or two networks (tunnel mode) | Site-to-site VPNs and remote-access VPNs, any protocol, no application changes |
| SNMPv3 | Management messages | Authenticated, encrypted device monitoring |
Two questions decide most choices. First, scope: does every packet between hosts or networks need protecting regardless of application (IPsec, which needs no application support), one application's sessions (TLS, which the application must support), interactive administration of one host (SSH), a plaintext protocol upgraded in place (STARTTLS), or the message itself after delivery (S/MIME or PGP)? Second, what the network allows: IPsec negotiates keys with IKE on UDP 500 and uses UDP 4500 for NAT traversal, while TLS-based VPNs run over TCP 443, which almost every network permits outbound. Legacy cleartext protocols (Telnet, FTP, HTTP, LDAP, SNMPv1/v2c) each have an encrypted replacement in the table above.
Key exchange and forward secrecy
Key exchange is how two parties end up with the same symmetric session key. With RSA key transport, one side encrypts a key to the other's public key. With Diffie-Hellman (DH) and its elliptic-curve form ECDH, each side combines its own private value with the other's public value and both compute the same secret, which never crosses the network. Its security does not depend on hiding the exchanged values: they are public by design, and computing the shared secret from them alone is infeasible. Diffie-Hellman is key agreement, not a cipher: it encrypts nothing itself.
Two facts about DH matter in scenarios:
- Ephemeral exchanges give forward secrecy. With DHE/ECDHE, fresh values are generated for every session and discarded afterwards, and the server's long-term private key only signs the exchange. That key's job is therefore authentication, not secrecy: if it is compromised, the damage runs forward (someone can pose as the server until the certificate is revoked and replaced), not backward, because the discarded session secrets cannot be rebuilt from it. With static RSA key transport, by contrast, the same long-term key decrypts every recorded session. TLS 1.3 removed static RSA key transport, so its certificate-based handshakes always use (EC)DHE.
- Unauthenticated DH resists eavesdroppers, not impostors. If neither side verifies who sent the exchange values, which is common on simple embedded or ad hoc links, an on-path attacker can run a separate exchange with each party and relay traffic, holding both keys. Signing the exchange with certificate-backed keys, as TLS does, closes that gap.
Algorithms and key length
The algorithm decides what a cryptographic operation does (encrypt, agree keys, sign or hash), and the key length decides how hard it is to brute-force; strength must be compared within an algorithm family, not across families.
| Algorithm | Type | Used for |
|---|---|---|
| AES (128, 192, 256-bit keys) | Symmetric block cipher | Bulk data encryption: disks, files, TLS sessions |
| ChaCha20 | Symmetric stream cipher | TLS on devices without AES hardware acceleration |
| 3DES, DES, RC4 | Legacy symmetric | Deprecated; replace with AES |
| RSA | Asymmetric | Key transport, digital signatures |
| ECC (ECDH, ECDSA, EdDSA) | Asymmetric (elliptic curve) | Key agreement and signatures with small keys |
| Diffie-Hellman | Asymmetric key agreement | Agreeing session keys |
| SHA-2, SHA-3 | Hash | Integrity, signatures, password hashing building blocks |
Key length is exponential
Each extra key bit doubles the number of possible keys. Ten extra bits multiply the keyspace by about a thousand, and 64 extra bits (AES-128 to AES-192) multiply it by 2^64; key length and brute-force effort are related exponentially, never linearly. The performance cost of a longer AES key is small by comparison: AES runs 10, 12 or 14 rounds for 128-, 192- and 256-bit keys, while the block size, and therefore the ciphertext size, is the same for every key length.
Comparable strength across families
Asymmetric keys must be much longer than symmetric keys for the same strength, and ECC needs far shorter keys than RSA. NIST's comparison (SP 800-57) puts roughly 128-bit symmetric strength at RSA-3072 or a 256-bit elliptic curve; RSA-2048 is about 112-bit strength, and RSA-1024 is too weak for any new use. Because ECC reaches the same strength with smaller keys and lighter computation, it is favoured wherever CPU, memory, power or bandwidth is scarce: smart cards, phones, embedded and IoT hardware, and high-volume TLS servers. Key length only compares strength within a family; it never turns one kind of algorithm into another.
Looking ahead, NIST published its first post-quantum standards in 2024 (ML-KEM for key establishment, ML-DSA and SLH-DSA for signatures), because a large quantum computer would break RSA, DH and ECC. Symmetric ciphers and hashes are far less affected; longer keys such as AES-256 keep a comfortable margin.
Hashing, salting and digital signatures
A hash function turns input of any size into a fixed-length digest that cannot be reversed, so it proves integrity: the same input always gives the same digest, and any change gives a completely different one. The properties that matter are determinism, the avalanche effect (a one-bit change yields an unrelated digest), one-way operation, fixed output length and no key. SHA-256 always produces 256 bits, which display as 64 hexadecimal characters, whether the input is a single character or a terabyte; MD5's 128 bits display as 32. Because a hash is one-way, it suits values that only ever need to be compared (passwords, file fingerprints), never values someone must read back.
| Algorithm | Digest | Status |
|---|---|---|
| MD5 | 128 bits | Practical collisions; do not use for security |
| SHA-1 | 160 bits | Practical collision demonstrated in 2017; deprecated, being phased out (NIST retirement by 2030), no longer accepted in TLS certificates |
| SHA-2 (SHA-256, SHA-384, SHA-512) | 224 to 512 bits | Current standard |
| SHA-3 | 224 to 512 bits | Current; a different internal design from SHA-2 |
Know what "broken" means. MD5's practical break is a collision: an attacker who controls both inputs can craft two different files with the same digest, for example a harmless file and a malicious twin, and swap them after the harmless one is approved or signed. Hash security has three distinct properties: collision resistance (no two inputs with the same digest), second-preimage resistance (no new input matching a given file's digest) and preimage resistance (no input recoverable from a digest). Losing the first is enough to retire an algorithm for signatures and certificates, which is why MD5 and SHA-1 have given way to SHA-256 or SHA-3. Non-cryptographic checksums such as CRCs catch accidental corruption but are trivial to forge.
Salting
Unsalted password hashes are deterministic: two users with the same password get the same hash, whatever the algorithm, and attackers can use precomputed rainbow tables. A salt is a unique random value generated for each account and hashed together with the password. Two users with the same password then have different hashes, which hides password reuse and makes precomputed tables useless, because a table would be needed for every salt.
A salt is not a secret: it is stored in the clear next to the hash, and its value lies in being unique, not hidden, so a database breach that includes the salts leaves that benefit intact. Its limit is that it adds no work per guess: an attacker can still try likely passwords against each account using that account's salt, so weak passwords still fall. Making every guess expensive is the job of key stretching (bcrypt, PBKDF2, scrypt, Argon2). Some systems also add a pepper, a secret value kept outside the database (for example in an HSM), as a separate layer.
Digital signatures
A digital signature is a hash of the content signed with the signer's private key. The verifier recomputes the hash and checks the signature with the signer's public key, usually taken from a trusted certificate. Signing does not encrypt the content; the document stays readable.
| Plain hash | MAC / HMAC (shared key) | Digital signature | |
|---|---|---|---|
| Integrity | Yes, against accidental change | Yes | Yes |
| Authentication of origin | No: anyone can compute it | Someone holding the shared key | The holder of the private key |
| Non-repudiation | No | No: either party could have made it | Yes |
| Confidentiality | No | No | No |
The difference is who can produce the value. A plain hash can be computed by anyone, so a hash published through the same channel as the file proves nothing if that channel is compromised; only a hash obtained from a separate trusted source helps. A signature can be produced only with the private key, so it survives an untrusted distribution channel. A failed verification against a trusted key means the bytes being checked are not the bytes that were signed: usually the content was altered after signing, and otherwise the verifier is using a different algorithm or format than the signer.
Cryptographic tools and obfuscation
Cryptographic tools are the hardware and services that generate, store and use keys so the keys are not exposed to ordinary software. The objective lists "tools" without sub-items; these four are the standard examples and are told apart by where the key lives and who uses it.
| Tool | What it is | Best fit |
|---|---|---|
| Trusted Platform Module (TPM) | A chip (or firmware) bound to one computer | Recording boot measurements (measured boot, attestation) and sealing keys, such as the full-disk encryption key, so they are released only on that machine in a known-good state |
| Hardware security module (HSM) | A dedicated, tamper-resistant appliance or card | Generating, storing and using keys at high volume for many servers without the keys ever leaving: CA signing keys, payment keys, TLS keys |
| Key management system (KMS) | A central service, often cloud-hosted and backed by HSMs | Lifecycle of many applications' keys from one place: creation, rotation, access policy, auditing |
| Secure enclave | An isolated area of a device's processor | Keeping a phone or laptop's own secrets out of reach of the main operating system, often gated by biometrics |
Two properties separate them in practice. A TPM is a small, slow chip: it measures, seals and releases keys, while the bulk encryption of data runs on the main processor or in a self-encrypting drive. And keys can be generated inside an HSM or a secure enclave as non-exportable: software asks the hardware to perform an operation with the key, and the key material itself never leaves the device (secure-enclave keys always work this way; many HSMs also allow wrapped export for backup or clustering when a key's attributes permit it).
Obfuscation
Obfuscation makes data or code hard to notice or understand without relying on a secret key, so enough effort can undo it; encryption's protection rests on a key, without which the ciphertext stays unreadable. Common forms:
- Steganography hides the very existence of data inside another file, such as an image or audio file. Encryption hides what data says but not that it exists: ciphertext does not look like an ordinary photo. Legitimate uses include watermarking; attackers use it to hide malware payloads, command traffic or stolen data inside innocent-looking media.
- Code obfuscation renames identifiers and restructures code so it still runs unchanged but is hard for people to read, for example a mobile app distributed to the public, where the code must run on devices the vendor does not control. It slows reverse engineering; it does not stop it.
- Data masking hides part of a value. Dynamic masking hides it when it is shown, such as displaying only the last four digits of an account number, while the full value is still stored; static masking permanently replaces the real values in a copy made for testing or analytics.
- Tokenization replaces a sensitive value with a random substitute, a token, and keeps the real value only in a separate, tightly controlled token vault.
Tokenization compared with encryption, hashing and masking
A token has no mathematical relationship to the value it replaces, so nothing about the token, and no key, turns it back into the original; only a lookup in the vault can. That is what sets it apart from its near-twins:
| Method | Can the original be recovered? | By whom | Effect on systems that store the result |
|---|---|---|---|
| Tokenization | Yes, by a vault lookup (detokenization) | Only the vault, which can be run by a separate provider | Systems holding only tokens hold no sensitive data, so they can drop out of the regulated scope |
| Encryption | Yes, by decrypting with the key | Anyone holding the key | If the same organization keeps the ciphertext and the key, it still holds the sensitive data and stays in scope |
| Hashing | No, a hash is one-way | Nobody; it can only be compared with a fresh hash of a candidate value | Useful for matching, useless when the original value must be used again later |
| Masking | Dynamic masking leaves the stored value untouched; static masking permanently replaces it in a copy | Any system that reads the underlying field | Dynamic: no change, the real value is still stored and only its display is hidden; a statically masked copy holds no real values |
The practical pattern: when a business must keep using a sensitive identifier, for example a health insurer that bills against members' national ID numbers, it can send each value to a tokenization service, store only the returned tokens in its own claims, reporting and support systems, and let the service detokenize whenever the real value is genuinely needed. A breach of those systems then exposes tokens that are worthless outside the vault. Hashing fits a different need, checking a value without ever reusing it, and short, structured identifiers make poor hash inputs anyway, because every possible value can be hashed and compared. Tokenization and masking also appear among the data-protection methods of objective 3.3.
Obfuscation raises the attacker's effort; it is not a security boundary and never a substitute for encryption.
Tip. Objective 1.3 is tested with short definition items and one- or two-detail scenarios. Expect to choose which key (and whose) is used for encryption or a signature, to pick a certificate type, revocation method, encryption level, transport protocol, algorithm or key-protection tool for a stated constraint, and to explain what a given control does and does not achieve, such as what salts still do once stolen or what a stolen key exposes under forward secrecy. Distractors are near-twins from the same objective: CRL vs OCSP, wildcard vs SAN, TPM vs HSM vs KMS vs secure enclave, full-disk vs file vs record-level, IPsec vs TLS vs SSH, hashing vs encryption vs obfuscation, tokenization vs masking. Read for the deciding constraint in the stem, such as who must trust the certificate, whether the system is running, or which ports are open.
- Symmetric encryption is fast but has a key-distribution problem; asymmetric solves distribution but is slow, so systems use hybrid encryption.
- Encrypt with the recipient's public key; sign with your own private key. Losing a private key loses everything encrypted to it.
- Key escrow keeps decryption keys recoverable but creates one high-value store; never escrow signing keys.
- Trust traces to a root in the client's trust store; servers must send the full chain, and a rogue trusted root enables silent interception.
- A CSR carries the public key and subject, signed by a private key that never leaves the host; *.example.com covers one label only.
- CRLs are scheduled lists; OCSP answers per certificate; stapling removes the client's call to the CA, and soft-fail clients accept a missing answer.
- Disk, partition and volume encryption protect powered-off devices; file encryption travels with the file; record-level encryption hides fields from DBAs.
- Ephemeral Diffie-Hellman gives forward secrecy but must be authenticated; ECC matches RSA strength with much smaller keys.
- Hashes are fixed-length and one-way; MD5 and SHA-1 are collision-broken; salts defeat rainbow tables, key stretching slows guessing.
- TPM = one device's boot measurements and sealed keys; HSM = shared high-volume key operations; KMS = central key lifecycle; obfuscation is not encryption, and tokenization (a random token resolved only by a separate vault) differs from masking, which only hides the display.
Frequently asked questions
What is the difference between symmetric and asymmetric encryption?
Symmetric encryption uses one shared secret key for both encryption and decryption; it is fast and suits bulk data, but the key must be distributed securely. Asymmetric encryption uses a key pair: data encrypted with the public key can be decrypted only with the private key. It solves key distribution but is much slower, so protocols such as TLS use asymmetric cryptography to exchange a symmetric session key and then encrypt the data with the symmetric key.
Which key encrypts a message and which key signs it?
To keep a message confidential, encrypt it with the recipient's public key; only the recipient's private key can decrypt it. To sign a message, sign its hash with your own private key; anyone can verify the signature with your public key. To achieve both, sign with your private key and encrypt with the recipient's public key.
What is key escrow and what is its main risk?
Key escrow means a trusted third party or controlled custodian holds copies of encryption keys so data can be recovered if the key holder is unavailable, for example after a device failure or a lawful access request. The main risk is concentration: the escrow store holds keys for many users, so its compromise or abuse would expose everyone's data. Signing keys should not be escrowed, because a signature proves origin only if the signer alone holds the key.
What is the difference between a CRL and OCSP?
A certificate revocation list (CRL) is a CA-signed list of all revoked certificates that clients download and cache, so it is only as current as its last publication. The Online Certificate Status Protocol (OCSP) lets a client ask about one certificate at connection time and receive a signed good, revoked or unknown answer. OCSP stapling has the web server attach a recent CA-signed OCSP response to the TLS handshake, so clients do not need to contact the CA.
Does a wildcard certificate cover the root domain and deeper subdomains?
No. A wildcard such as *.example.net matches exactly one label in the leftmost position, so it covers www.example.net or mail.example.net but not the bare example.net and not a.b.example.net. Those names must be added as separate subject alternative name (SAN) entries, and a wildcard can appear only once, as the whole leftmost label.
Why is a self-signed certificate not trusted by browsers?
A self-signed certificate is signed with its own private key, so its issuer and subject are the same and no outside authority vouches for it. Browsers trust only certificates that chain to a root in their trust store, so a self-signed certificate is trusted only after it is added to each client by hand. For many internal servers, an internal CA whose root is distributed once to managed devices scales better; public sites need a certificate from a public third-party CA.
Does salting a password hash slow down cracking?
Not per guess. A unique random salt per account makes identical passwords produce different hashes and makes precomputed rainbow tables useless, even when the salts are stolen with the hashes. But each guess still costs only one hash computation, and weak passwords still fall to a dictionary attack run per account. Slowing every guess is the job of key stretching algorithms such as bcrypt, PBKDF2, scrypt or Argon2.
What is the difference between a TPM and an HSM?
A Trusted Platform Module (TPM) is a chip bound to one computer that records boot measurements and seals that device's keys, such as its disk encryption key, so they are released only on that machine in a known-good state. A hardware security module (HSM) is a dedicated tamper-resistant device that generates, stores and uses keys at high volume for many servers, such as a certificate authority's signing keys, without the keys ever leaving it.
Source
This lesson covers the "General Security Concepts" domain of the official SY0-801 exam guide. Vendors revise their guides — check the source for the current version.
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.