R00t pr0gre$$

The Homepage of Evan Fillman

Ubuntu
DOD CAC Reader on Ubuntu PDF Print E-mail
Friday, 24 July 2009 14:12

I posted this tutorial into the ubuntu forums as well: http://ubuntuforums.org/showthread.php?t=1221961

I was able to get my government email working from the Air Force portal today running Ubuntu Jaunty and Firefox 3.

The first step was to purchase an SCR331 CAC Card Reader from Amazon, it cost about $30.

The I mostly followed allong this tutorial with a few modifications.

The first step was to install the necessary packages, some of which had been update since the tutorial was written.

This ended up being my final aptitude command:

sudo apt-get install libpcsclite-dev pcscd pcsc-tools build-essential autoconf libccid coolkey

In case youre wondering what all of those programs do, heres a quick breakdown:
libpcsclite-dev: Middleware to access a smart card using PC/SC (development files)
pcscd: Middleware to access a smart card using PC/SC (daemon side)
pcsc-tools: Some tools to use with smart cards and PC/SC
libccid: PC/SC driver for USB CCID smart card readers
coolkey: Smart Card PKCS #11 cryptographic module
build-essential: Informational list of build-essential packages
autoconf: automatic configure script builder

Next I plugged in my CAC card reader and ran pcsc-scan from the terminal

It said my CAC Card was not recognized so I ran the update as instructed from pcsc-scan (in the output) for me it was

wget http://ludovic.rousseau.free.fr/softwares/pcsc-tools/smartcard_list.txt --output-document=/home/livingroom/.smartcard_list.txt

This command downloads an updated lists of CAC card signatures for pcsc-scan to use. After I ran this I ran pcsc-scan again and it seemed to work better.

Continuing on with making the CAC available to firefox. Open Firefox and browse to:

1) Edit-> Preferences -> Advanced -> Encryption
2) Click on the Security Devices button
3) Click the Load button to load a new module. Name it CAC Module and either type in or browse to /usr/lib/pkcs11/libcoolkeypk11.so
4) Install all three DOD certificates and put a checkmark on all of them. Just click on each one and firefox will ask you if it's ok
http://dodpki.c3pki.chamb.disa.mil/rootca.html

Viola the CAC should now available to sites and should show up in Firefox.

 

 

 

 

Last Updated on Friday, 24 July 2009 15:42
 
Find Replace Files, Folders, Text PDF Print E-mail
Wednesday, 24 December 2008 04:15

This is a useful script  to find and replace on a whole folder to include the file names, folder names, and text within the files.


  for f in `find . -name '*'`
do
mv $f ${f/holiday/point}
sed -f 's/holiday/point/g' $f
done

for i in `find . -name '*.*'`
do
sed -i 's/holiday/point/g' $i
sed -i 's/Holiday/Point/g' $i
done


 just put that code into a new text file and run it from terminal on the folder, it helps to reference it via ../find.sh or else it will find and replace the text in the script!