Teaching Firefox to use a CAC

This quick guide explains how to configure Firefox on Windows to use CAC smart card certificates by installing OpenSC and loading its PKCS#11 module. It provides practical setup steps for accessing CAC-protected sites.

Coveros Staff

December 5, 2012

Some of the sites I use require a CAC smart card to establish SSL access. (Forge.mil is an example of this.) Chrome and IE (shudder) are both smart enough to use a smart card for certificates out of the box on Windows. Unfortunately, Firefox doesn’t seem to be set up to do it without some adjustment. These are the steps I used to enable smart cards (CAC) in Firefox.

First, you need some kind of client library that provides what Firefox needs. Two options for this are Active Client (standard use by DoD and other government agencies) and OpenSC. I chose OpenSC just because it seems to be fairly light weight and easy to install.

First, download and install OpenSC from it’s web site. (http://www.opensc-project.org/opensc/wiki) Installation was fairly brain dead and easy. Unfortunately, it did NOT actually enable Firefox with the smart cards, so I had to use some older, more drastic methods.

I used and older set of instructions as a reference that popped up in Google: http://www.opensc-project.org/opensc/wiki/MozillaSteps. To do this, basically do the following:

  1. Firefox: Tools > Options: Advanced tab
  2. Manage Security Devices
  3. “Load” a new security device
    1. Name as “OpenSC PKCS#11 Module”
    2. Browse to C:\Windows\System32\, choose opensc-pkcs11.dll
  4. Click Ok, Ok, …, Ok to finish everything

Now, when you access a CAC-required web site, it should pop up a box and ask you to select a smart card certificate. The interface isn’t as pretty as either IE or Chrome, but it seems to work.

Coveros Staff

Coveros Staff

This post represents the collective insights of the Coveros team. Our staff consists of software experts who bring deep experience in secure agile development, DevOps, testing, and software quality. Over the past 20 years, Coveros has trained more than 30,000 professionals and worked with half of the Fortune 100 companies on mission-critical software development challenges. We draw on this extensive experience to share practical insights, proven strategies, and real-world solutions that help organizations build better software faster and more securely.