Access, authentication, and PKI
SecurityX CAS-005 · Lesson 9 of 24 · 1:03:46
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the CompTIA SecurityX (CAS-005) exam. In this lesson: provisioning, federation, SSO, and conditional access, policy decision and enforcement points, access control models (RBAC, rule-based, ABAC, MAC, and DAC), and PKI architecture with certificate types, extensions, OCSP stapling, and CA and RA roles. Includes three original practice questions, with Thornbury Biotech, a fictional biotech company whose security architect designs and runs its security, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Who gets in, and how
Thornbury Biotech's employees, contractors, and research partners need access to dozens of applications, and to the labs themselves. Last quarter, a former contractor's account was still active six months after the contract ended, and lab badges were managed in a separate system. The access design needs one identity, clear decisions, the right model, and certificates that can be trusted.
The identity life cycle
Access starts with provisioning: creating the account and its access when someone joins, ideally driven by the HR system, so that job changes and departures follow automatically. Credential issuance must be secure too: verify the person's identity first, then deliver a temporary credential that must be changed, or enroll a passkey or a smart card in person. Self-provisioning lets users request access through a portal, approved by the owner of each resource, which saves time, but needs clear approval rules. Deprovisioning is the step that fails most often: when someone leaves or changes jobs, old access must be removed quickly, everywhere, including cloud apps and badges. Regular access reviews catch what was missed, with managers attesting that each person still needs each access.
Federation and single sign-on
Federation lets one organization trust identities managed by another. The identity provider, or IdP, authenticates the user, and sends the application a signed assertion or token, through standards like SAML or OpenID Connect. The service provider, which is the application, trusts that assertion, instead of keeping its own passwords. Single sign-on builds on this: one strong sign-in, with MFA, opens many applications, and disabling one account removes access to all of them. Attestations add evidence about the device: its TPM can attest that it booted cleanly, so the identity provider knows more than who the user is.
Deciding access
Conditional access decides at each sign-in, based on signals: who the user is, the device and its compliance, the location, and the risk of the sign-in. The result can be to allow, to require MFA, to limit the session, or to block. In this design, the policy decision point, or PDP, evaluates the request against policy, and the policy enforcement point, or PEP, like a gateway, a proxy, or the application itself, applies the decision. Keeping decisions in one place keeps policies consistent across many enforcement points. Logging and auditing complete the picture: keep logs of sign-ins, access decisions, and administrator changes, send them to the SIEM, and review them regularly.
Access control models
Role-based access control, or RBAC, gives permissions to roles, like lab technician or trial manager, and users get roles. Rule-based access control applies rules to everyone, like a firewall rule list, or no access outside business hours. Attribute-based access control, or ABAC, evaluates attributes of the user, the resource, and the context, like department, data tags, device, and time, so one policy can replace hundreds of roles. Mandatory access control, or MAC, enforces labels set by the system, which users cannot change, as with clearances and classified data. Discretionary access control, or DAC, lets the owner of a resource decide who gets access, which is flexible, but hard to control at scale. And access control systems are physical, like badge readers, locks, and access control vestibules, or logical, like accounts and permissions, and the best designs tie both to the same identity.
PKI architecture
A public key infrastructure issues and manages certificates. The certificate authority, or CA, signs certificates, and the registration authority, or RA, verifies requesters before the CA issues anything. A common design keeps the root CA offline, with its key in a hardware security module, and uses online intermediate CAs to issue certificates day to day, so a compromised intermediate can be revoked without replacing the root. Certificate types include root and intermediate CA certificates, server certificates, wildcard certificates that cover every subdomain at one level, client and device certificates, and code signing certificates. Extensions define what a certificate can do: subject alternative names list the names it covers, key usage and extended key usage limit its purpose, and basic constraints say whether it can sign other certificates.
In an enterprise CA, templates define each kind of certificate: its validity, key usage, key size, and who may enroll, often with automatic enrollment for managed devices. Deployment means integrating the PKI with everything that uses it: device management, Wi-Fi and VPN authentication, web servers, and automated renewal through the ACME protocol. Revocation must work too, through certificate revocation lists, and the Online Certificate Status Protocol, or OCSP, which answers for one certificate at a time. With OCSP stapling, the web server fetches the signed OCSP answer itself, and staples it to the TLS handshake, so clients do not have to ask the CA, which is faster and more private. Some public CAs, like Let's Encrypt, now publish revocation lists only, so check what your CA supports before you rely on stapling.
Recap
Let's recap. Provision from HR, issue credentials securely, deprovision quickly everywhere, and review access with attestations. Federation lets an identity provider vouch for users to a service provider, and single sign-on opens many apps with one strong sign-in. Conditional access weighs signals at the PDP, enforced at PEPs, with every decision logged and audited. RBAC, rule-based, ABAC, MAC, and DAC answer different needs, and physical and logical access should share one identity. And a PKI pairs an offline root with intermediate CAs, templates, extensions, and revocation, with OCSP stapling for speed and privacy.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Researchers from three universities need access to Thornbury’s trial portal. Thornbury does not want to manage their passwords. What fits best?
- A shared account for each university
- Federation with each university’s IdP
- Self-provisioned local accounts on the portal
- Discretionary access set by each researcher
Show the answer
Federation with each university’s IdP
With federation, each university's identity provider authenticates its own researchers, and the portal trusts their assertions. “A shared account for each university” would remove accountability, because nobody knows who used a shared account. “Self-provisioned local accounts on the portal” would still leave Thornbury managing local passwords. And “Discretionary access set by each researcher” is about who decides permissions, not about who authenticates the users.
Researchers should open trial data only when it is tagged with their own trial, and only from a managed device. A role for every trial and device combination is not practical. Which model fits?
- Role-based access control
- Discretionary access control
- Mandatory access control
- Attribute-based access control
Show the answer
Attribute-based access control
Attribute-based access control evaluates the user's trial, the data's tag, and the device in one policy. “Role-based access control” would need a role for every combination, which is the problem. “Discretionary access control” would let each data owner decide alone, without a consistent rule. And “Mandatory access control” only compares labels and clearances, and cannot use context like the device.
Visitors to Thornbury’s partner portal wait while their browsers check the certificate’s status with the CA, and the CA learns which sites they visit. What should the web team enable?
- OCSP stapling on the web server
- A wildcard certificate
- A longer certificate validity
- An offline root CA
Show the answer
OCSP stapling on the web server
With OCSP stapling, the server sends the signed status itself, so browsers do not have to contact the CA. “A wildcard certificate” only changes which names the certificate covers, not how its status is checked. “A longer certificate validity” would keep the same checks, and leave a stolen key usable for longer. And “An offline root CA” only protects the root CA's key.