User and operator guide · Security

CAC/PIV With YubiKey

Status: currentReviewed: 2026-06-18Audience: deployment engineers, IAM administrators, security engineers, workstation administrators
On this pageCapability StatusHow Atlas Matches CAC/PIV IdentityCAC/PIV ModesConfigure A YubiKey For PIV TLS AuthenticationUse A YubiKey With Atlas Browser CACLocal-Live Lab OptionEvidence To CaptureTroubleshootingClaim Boundary

Use this page when Atlas browser login should accept a CAC/PIV-style client certificate, including a YubiKey used in PIV mode.

This page does not tell an operator to replace an issued CAC. It describes how Atlas consumes client-certificate identity and how a YubiKey can be used as a PIV-compatible credential holder when the deployment authority allows that pattern.

For enterprise CA hierarchy, trust-store ownership, rotation, revocation, and dependency CA mapping, use security:certificate-authority-management.html.

Capability Status

Capability Status Boundary

Demo CAC button

local-live-only

Enabled only when demo auth is explicitly enabled by ATLAS_ENABLE_DEMO_AUTHN and frontend demo build flags.

Generated local-live browser CAC bundle

validated

Created by scripts/run-local-live-validation.sh for local testing. It is not enterprise PKI evidence.

Browser client-certificate flow

validated for local-live

Uses the gateway browser CAC listener, Atlas trust bundle config, directory/identity lookup, active-user requirement, and audit path.

YubiKey PIV as credential holder

untested

The guide documents expected setup. Manual or automated evidence must be collected for each target workstation/browser profile.

Production DoD PKI operation

external-evidence-required

Requires approved trust bundle, revocation behavior, issuer acceptance, token lifecycle, and deployment authorization.

How Atlas Matches CAC/PIV Identity

Atlas accepts the client certificate only after all configured gateway checks pass. The browser CAC/PIV path then maps the certificate to an Atlas or directory user.

Check Required outcome

Certificate presented

Browser supplies a client certificate during the CAC/PIV browser flow.

Certificate validation

Chain, key usage, trust bundle, and revocation behavior match the configured validation mode.

Identity attributes

Certificate contains a usable subject, email, EDIPI, SAN, or equivalent mapped attribute.

Directory or Atlas user match

A user matches the certificate identity.

Active account

The matched user is active. Pending, suspended, or unknown users fail closed.

Session issuance

Atlas creates a session with CAC/PIV authentication context and writes audit evidence.

CAC/PIV Modes

Mode When to use What it proves

Demo CAC

UI demonstration when ATLAS_ENABLE_DEMO_AUTHN is enabled.

The demo path can issue a local session for a seeded user. It does not prove browser client-certificate handling.

Local-live browser CAC

Integrated validation with generated certificate material.

The browser CAC listener, client-certificate validation path, identity lookup, active-user gate, session exchange, and audit path work in local-live.

Real CAC/PIV or YubiKey PIV

Deployment validation with an environment-issued credential and trust bundle.

Only the behavior captured by that deployment’s artifacts. Enterprise approval remains external.

Configure A YubiKey For PIV TLS Authentication

Follow the current Yubico documentation for token setup. Atlas only consumes the resulting client certificate through the browser/gateway flow.

Official references:

Minimum setup checklist:

  1. Obtain an X.509 client-authentication certificate and private key from the deployment-approved authority.

  2. Confirm the credential may be placed on the YubiKey under local policy.

  3. Install Yubico Authenticator or YubiKey Manager CLI (ykman) on the provisioning workstation.

  4. Check PIV state with ykman piv info.

  5. Import the certificate/key pair into an appropriate PIV slot. Slot 9a is the normal authentication slot for TLS client authentication.

  6. Verify the certificate appears in ykman piv info.

  7. Configure the workstation/browser smart-card middleware, such as operating-system smart-card support or PKCS#11 where required.

  8. Confirm the browser prompts for and sends the YubiKey certificate to the Atlas browser CAC URL.

Example import shape:

ykman piv info
ykman piv certificates import 9a path/to/client-auth.p12
ykman piv info

The exact import command, PIN prompts, management key handling, and middleware setup must follow the credential authority and workstation baseline.

Use A YubiKey With Atlas Browser CAC

  1. Configure Atlas gateway CAC/PIV trust settings for the target environment.

  2. Ensure the browser CAC listener is enabled and reachable.

  3. Ensure the YubiKey certificate chain is trusted by the configured trust bundle.

  4. Ensure revocation behavior is configured and evidence-backed for the deployment.

  5. Create or import the Atlas user and set the account to ACTIVE.

  6. Map the certificate identity to the Atlas user by EDIPI, email, subject, or deployment-specific attribute.

  7. Open Atlas /login.

  8. Select the CAC/PIV browser path.

  9. Choose the YubiKey certificate in the browser prompt.

  10. Enter the token PIN when the workstation prompts for it.

  11. Verify the protected Atlas route opens.

  12. Open /audit and confirm the CAC/PIV authentication event and session issuance are present.

Expected result: Atlas issues a session only when the certificate validates, the user matches, and the account is active.

Local-Live Lab Option

The local-live script generates a PKCS#12 bundle under artifacts/local-live-validation/<run-id>/browser-cac/. That bundle can be imported into a browser profile for local browser testing.

Importing the generated bundle into a YubiKey for a manual lab is untested by the current automated gate. If you do it, label the result as manual local-live evidence and keep it out of production claims.

Evidence To Capture

Evidence Source

Gateway CAC/PIV config

Rendered gateway configuration with secrets redacted.

Trust bundle inventory

Trust anchor list, issuer chain, and environment owner.

Revocation behavior

OCSP/CRL configuration, offline/fail-closed policy, and test result.

Token certificate attributes

Sanitized subject, issuer, serial/thumbprint, SAN/email/EDIPI mapping evidence.

User mapping

Active Atlas/directory user showing matching identity attribute.

Authentication event

Audit entry and session metadata showing CAC/PIV authentication context.

Browser/workstation result

Screenshot or log showing certificate selection and successful or failed login.

Troubleshooting

Symptom Likely cause Operator action

Browser does not prompt for a certificate

Browser does not see the token, smart-card middleware is missing, or the Atlas browser CAC listener is not reached.

Check token insertion, middleware, browser certificate store, and the browser CAC URL.

Certificate prompt appears but login fails

Trust chain, key usage, revocation, or validation mode rejected the certificate.

Review gateway CAC/PIV logs and trust-bundle configuration.

Certificate validates but user is not matched

EDIPI, email, subject, or mapped attribute does not match an active user.

Correct the identity mapping or activate the intended user.

User is matched but mutation is denied

CAC/PIV authentication is not authorization.

Verify operator role/scope, policy, session AAL, resource access, device posture, and risk state.

YubiKey import asks for unknown PIN, PUK, or management key

The token is already managed by an organization or has non-default PIV secrets.

Stop and contact the token owner or credential authority.

Claim Boundary

Atlas may cite local-live CAC/PIV evidence for repository-supported behavior. Do not use that evidence to claim:

  • production DoD PKI operation

  • universal hardware-backed AAL3

  • token issuance authority

  • revocation service approval

  • enterprise trust-bundle acceptance

  • FIPS validation, Common Criteria certification, or ATO authorization

Those require external artifacts cited by issuer, owner, date, scope, and expiration or review cycle.