Tuesday, November 27, 2012

Joys of Subversion with a CAC card.

in $HOME/.subversion/servers

Put in the [Global] Section


#ssl-pkcs11-provider = coolkey
ssl-pkcs11-provider = cackey

Un-comment the setup you are using. I am using the cackey so I have coolkey uncommented, but if you are using coolkey, put the cool key line in. Its that simple, IF you already have the CAC software installed.
 --update Dec 7th, 2012
Ran a test today, for SVN coolkey WILL work with a CAC. I figured since its been years since the coolkey was notorious to fail, I would check it out today.


Alternatively you can just do this:

Create a script to do this for the users;

if grep --quiet "ssl-pkcs11-provider = cackey" $HOME/.subversion/server; then
   echo "SVN is cac enabled"
else
   sed -i 's@#ssl-pkcs11-provider = coolkey@ssl-pkcs11-provider = cackey@g' $HOME/.subversion/server
fi




Or on a just one off time; sed -i 's@#ssl-pkcs11-provider = coolkey@ssl-pkcs11-provider = cackey@g' $HOME/.subversion/server