Military Smart Cards
Linux Setup

CAC Setup for Linux

Complete installation guide for major Linux distributions (Ubuntu, Fedora, Debian, etc.).

1
Install Required Packages

Install OpenSC and PCSC-Lite for smart card support. Commands vary by distribution.

Ubuntu / Debian

sudo apt update
sudo apt install opensc pcscd pcsc-tools

Fedora / RHEL / CentOS

sudo dnf install opensc pcsc-lite pcsc-tools

Arch Linux

sudo pacman -S opensc ccid pcsclite
2
Start PCSC Service

Enable and start the PC/SC smart card daemon:

sudo systemctl enable pcscd
sudo systemctl start pcscd

Verify Service Status:

sudo systemctl status pcscd

The service should show as "active (running)"

3
Connect CAC Reader & Test

Connect your USB smart card reader and verify detection:

pcsc_scan

This command will display detected readers and cards. Press Ctrl+C to exit. You should see your card reader listed and your CAC detected when inserted.

4
Install DoD Certificates

Download and install DoD root certificates:

General Steps:

  1. Download DoD certificates from public.cyber.mil
  2. Extract certificate files (.cer or .pem format)
  3. Copy to /usr/local/share/ca-certificates/ (Ubuntu/Debian) or /etc/pki/ca-trust/source/anchors/ (Fedora/RHEL)
  4. Run update command:
# Ubuntu/Debian
sudo update-ca-certificates

# Fedora/RHEL
sudo update-ca-trust
5
Configure Browsers

Chrome / Chromium

Chrome should automatically detect OpenSC. If not, you may need to install the libnss3-tools package and configure the NSS database.

Firefox (Recommended)

Firefox requires manual PKCS#11 module configuration:

  1. Open Firefox → Settings → Privacy & Security
  2. Scroll to "Security Devices" and click
  3. Click "Load"
  4. Module Name: OpenSC
  5. Module Path: /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so (location may vary)
  6. Click OK and restart Firefox
6
Test Your Setup
  1. 1. Insert your CAC into the reader
  2. 2. Open Firefox or Chrome
  3. 3. Navigate to a CAC-enabled test site
  4. 4. Select your authentication certificate when prompted
  5. 5. Enter your PIN