Using a CaC reader?

I am wondering how can I use my CAC reader on since I am in the military keep getting no client certificate presented
No description
41 Replies
mrvictorywin (Ping on reply)
what what is this?
CreeperCrazy
CreeperCrazyOP2mo ago
logining into my military things but keep getting that error
cpseybold
cpseybold2mo ago
Just to bridge the gap here. A CAC card functions as a smart card so it’s probably something with the smart card driver
Zed
Zed2mo ago
I'd start with using pcsc_scan to verify the card is being detected. First, check that pcscd is running:
systemctl status pcscd
If it's running, then run pcsc_scan (you probably need to "dnf install pcsc-tools" first) without the CAC in. Hopefully your reader(s) show up. Next, insert the card. pcsc_scan should show some output indicating it read the card.
Zed
Zed2mo ago
should look something like so
No description
Zed
Zed2mo ago
Also: what browser are you using, and how did you install it.
CreeperCrazy
CreeperCrazyOP2mo ago
No description
Zed
Zed2mo ago
sorry, obviously the dnf command wasn't going to work, wasn't tracking where I was talking
CreeperCrazy
CreeperCrazyOP2mo ago
eh thats alright
Zed
Zed2mo ago
you can install pcsc_scan in a distrobox and run it That said, if you're using the built-in firefox from flatpak, it's not going to work
Zed
Zed2mo ago
GitHub
Flatpak Apps and SmartCard or Security Device · Issue #4066 · fla...
Linux distribution and version Linux Mint 19.2 Flatpak version Flatpak 1.9.3 Other versions Thunderbird 78.6.1 pcsc-lite version 1.8.23. OpenSC 0.21.0 [gcc 7.5.0] Enabled features: locking zlib rea...
CreeperCrazy
CreeperCrazyOP2mo ago
rpm-ostree install pcsc-tools I just did this
Zed
Zed2mo ago
The most reliable I've had this working is to (after confirming things are working in pcsc_scan) is to layer/rpm-ostree install chromium or your other preferred chrome based browser. layered firefox can work but I generally found it less reliable I basically just keep a separate browser for all my CAC-enabled stuff.
CreeperCrazy
CreeperCrazyOP2mo ago
it still does it
Zed
Zed2mo ago
pcsc_scan? Or the browser?
CreeperCrazy
CreeperCrazyOP2mo ago
browser
Zed
Zed2mo ago
Is the scan seeing your reader and card? That’s the first thing that needs to be working
CreeperCrazy
CreeperCrazyOP2mo ago
the pcsc_scan works
Zed
Zed2mo ago
K. And you’re using an rpm-ostree installed chromium now?
CreeperCrazy
CreeperCrazyOP2mo ago
ok gotta restart the pc now thank you dude it works
Zed
Zed2mo ago
Happy to help
CreeperCrazy
CreeperCrazyOP2mo ago
I will say the restart process on bazzite is weird because I do have to do a complete power off for it to run again its doing it again somehow
Zed
Zed2mo ago
pcsc_scan is seeing both the reader and the card? I've seen pcscd crash on occasion, too: systemctl status pcscd, and if it failed, restart it.
CreeperCrazy
CreeperCrazyOP2mo ago
That works but I keep having to uninstall and reinstall chromium everytime it stops working Like what causes that?
Zed
Zed5w ago
You really shouldn't need to reinstall chromium. At worst quit and reopen it?
CreeperCrazy
CreeperCrazyOP5w ago
Thats what I kept trying at first
Zed
Zed5w ago
No idea. It's been pretty stable on f42 for me, though. 41 was crashy. I think the reboot is what's changing the state, not the reinstall. Something that should be fixable without reboots, just gotta find what's going on.
CreeperCrazy
CreeperCrazyOP5w ago
I have been rebooting
Zed
Zed5w ago
So, just going through the confirmation steps again: 1) pcscd is shown as running 2) pcsc_scan detecting the readers, and once you insert the card, it's detected without errors? Something to try if the above is good and it's still not working:
CreeperCrazy
CreeperCrazyOP5w ago
it detects it without error
Zed
Zed5w ago
Quit chromium, remove the card. Restart chromium, insert card, load the page. If that doesn't work, remove card, quit chromium. Insert card, wait a sec for it to read the card, start chromium, load the page. These things can just be finicky. :/
CreeperCrazy
CreeperCrazyOP5w ago
yea still doesn't work smh
Zed
Zed5w ago
I genuinely have no idea why reinstalling chromium would have any effect. It doesn't make sense to me. I keep edge installed for my cac-enabled stuff. It's mostly microsoft hosted junk anyway :p Built-in reader? Have a different one to try?
CreeperCrazy
CreeperCrazyOP5w ago
I have one of them plug in ones and I don't have a different one been trying to get my things set up for college
Zed
Zed5w ago
I'm a bit stumped.
CreeperCrazy
CreeperCrazyOP5w ago
yea keeps saying this
No description
Zed
Zed5w ago
I guess I'd try purging the chromium cache by deleting ~/.cache/chromium and perhaps ~/.config/chromium, just to see, but again, that doesn't make and sense re: the reinstall.
CreeperCrazy
CreeperCrazyOP5w ago
Where would those be?
Zed
Zed5w ago
Those are the directories -- in your home directory.
CreeperCrazy
CreeperCrazyOP5w ago
Ok sad news still doesn't work
Cobra
Cobra3w ago
gonna give this a try aswell as ive been looking for a way to get get my CAC working on my handheld Ill report back if i have the same issue or not Platform: Legion Go running a fresh install from today. 1. rpm-ostree install pcsc-tools Restarted 2. pcsc_scan tested good for both reader and card 3. rpm-ostree install chromium Restarted 4. Email login tested good on Chromium (Also tested on Chrome and Edge installed using Flathub, both did not detect the CAC) 5. Restarted to test the mentioned issue, logged into email with no issue again.

Did you find this page helpful?