Photo by Arthur Reeder on Unsplash

Setting up Common Access Card (CAC) Reader on Manjaro Linux

The CAC reader i am referencing can be bought at Newegg. The first thing i would recommend is reviewing the list of USB devices that are currently installed. This can be done by running:

mhwd -lh -d --usb

In my case the CAC Reader was already found by Manjaro; which is amazing. Below are my results:

04: USB 00.0: 10e00 Chipcard Reader
SysFS ID: /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0
SysFS BusID: 1-2:1.0
Hardware Class: chipcard
Model: "SCM Microsystems SCR331-LC1 / SCR3310 SmartCard Reader"
Hotplug: USB
Vendor: usb 0x04e6 "SCM Microsystems, Inc."
Device: usb 0x5116 "SCR331-LC1 / SCR3310 SmartCard Reader"
Revision: "2.04"
Speed: 12 Mbps
Module Alias: "usb:v04E6p5116d0204dc00dsc00dp00ic0Bisc00ip00in00"
Attached to: #8 (Hub)

Now for the scratch your head part. You cannot utilize your CAC even though the CAC reader is found. The next step is to start the PC/SC Smart Card Daemon service. This can be done by running:

sudo systemctl start pcscd.service

Let’s check the status of the service and make sure everything is ok. Run the following:

sudo systemctl status pcscd.service

Should get something simlar:

● pcscd.service - PC/SC Smart Card Daemon
Loaded: loaded (/usr/lib/systemd/system/pcscd.service; indirect; vendor preset: disabled)
Active: active (running) since Wed 2021-02-03 09:13:22 CST; 33s ago
TriggeredBy: ● pcscd.socket
Docs: man:pcscd(8)
Main PID: 82826 (pcscd)
Tasks: 2 (limit: 14079)
Memory: 532.0K
CGroup: /system.slice/pcscd.service
└─82826 /usr/bin/pcscd --foreground --auto-exit
Feb 03 09:13:22 kev systemd[1]: Started PC/SC Smart Card Daemon.

Now lets enable this service so we do not have to run this every time we restart. This can be done by running:

sudo systemctl enable pcscd.service

Enterprise Solution Architect | Certified Kubernetes Administrator ⚓ | SAFe SPC | LeSS Practioner | AWS Solutions Architect | Dev*Ops/GitOps Engineer 🔥

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store