Skip to main content
fixed typo
Source Link
depquid
  • 4k
  • 1
  • 24
  • 36

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".)

WithI changed the ownershipowner of .pki/nssdb/pkcs11.txt changed to me~/.pki/nssdb/pkcs11.txt from root, the message is to me and now I get the failure message is: 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?

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".)

With the ownership of .pki/nssdb/pkcs11.txt changed to me from root, the message is the failure message is 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?

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?

added 928 characters in body
Source Link
Liam
  • 299
  • 1
  • 3
  • 7

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".)

With the ownership of .pki/nssdb/pkcs11.txt changed to me from root, the message is the failure message is 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?

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".)

How do I install the library?

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".)

With the ownership of .pki/nssdb/pkcs11.txt changed to me from root, the message is the failure message is 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?

Source Link
Liam
  • 299
  • 1
  • 3
  • 7

Installing smartcard reader in Chrome

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".)

How do I install the library?