Skip to content

Instantly share code, notes, and snippets.

@sam0x17
Last active March 21, 2018 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sam0x17/61e095cfc79260d75efec15134c91734 to your computer and use it in GitHub Desktop.
Save sam0x17/61e095cfc79260d75efec15134c91734 to your computer and use it in GitHub Desktop.
Ubuntu CAC Setup
#!/bin/bash
sudo apt-get update
sudo apt-get install -y libpcsclite1 coolkey pcsc-tools libpcsc-perl libccid pcscd libnss3-tools
sudo service pcscd start
curl http://militarycac.com/maccerts/AllCerts.zip > ~/DOD_Certs.zip
modutil -dbdir sql:/home/`whoami`/.pki/nssdb/ -add "CAC Module" -libfile /usr/lib/pkcs11/libcoolkeypk11.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment