I have a smartcard and reader installed in Debian 8.5; it works under Firefox. I am trying to activate in Chrome. I followed these instructions and got the following:
> cd > modutil -dbdir sql:.pki/nssdb/ -add "CAC Module" -libfile /usr/lib/libcackey.so WARNING: Performing this operation while the browser is running could cause corruption of your security databases. If the browser is currently running, you should exit browser before continuing this operation. Type 'q <enter>' to abort, or <enter> to continue: ERROR: Failed to add module "CAC Module". Probable cause : "File not found". and yet the file indeed exists
> ls -oh /usr/lib/libcackey.so -rw-r--r-- 1 myuser 122K Sep 30 2015 /usr/lib/libcackey.so (Oddly, when I tried the same command with sudo, it failed but with a different message, Probable cause : "Failure to load dynamic library".)
I changed the owner of ~/.pki/nssdb/pkcs11.txt from root to me and now I get the message: Probable cause : "Failure to load dynamic library" and the following is the listing
> modutil -dbdir sql:.pki/nssdb/ -list Listing of PKCS #11 Modules ----------------------------------------------------------- 1. NSS Internal PKCS #11 Module slots: 2 slots attached status: loaded slot: NSS Internal Cryptographic Services token: NSS Generic Crypto Services slot: NSS User Private Key and Certificate Services token: NSS Certificate DB 2. CAC Module library name: /usr/lib/libcackey.so slots: 2 slots attached status: loaded slot: CACKey Slot token: slot: CACKey Slot token: US Government Certificates ----------------------------------------------------------- How do I install the library?
.pki/nssdb/exist?cert9.db,key4.db, andpkcs11.txt. The first two are owned by me, the last one by root. Permissions are all 600.pkcs11.txtowned by root? If it's under your home directory (i.e. in~/.pki/nssdb), then it should be owned by you.Probable cause : "Failure to load dynamic library"message.modutil -dbdir sql:.pki/nssdb/ -listto your question.