fails to load modules for pkcs11 backends
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openCryptoki |
Fix Released
|
Unknown
|
|||
opencryptoki (Ubuntu) |
Fix Released
|
Undecided
|
Stéphane Graber |
Bug Description
After installing opencryptoki, one should be able to query the available backend modules with the command "pkcsconf -i". On the current version in precise (2.3.1+dfsg-3), this is failing with the following error:
C_GetSlotCount returned 0 slots. Check that your tokens are installed correctly.
The expected output is:
PKCS#11 Info
Version 2.11
Manufacturer: IBM
Flags: 0x0
Library Description: Meta PKCS11 LIBRARY
Library Version 2.3
I'm not sure what the root cause is, but strace on the pkcsconf program shows it is looking in the default search path for the backend libraries (for e.g. the TPM and the soft-token backend). They are installed in /usr/lib/
Testing / workaround instructions:
1. stop opencryptoki
2. run pkcs11_startup to generate /var/lib/
3. edit /var/lib/
4. start opencryptoki
5. run pkcsconf -i
tags: | added: css-sponsored-p rls-mgr-p-tracking |
Changed in opencryptoki (Ubuntu): | |
assignee: | nobody → Stéphane Graber (stgraber) |
Changed in opencryptoki: | |
status: | Unknown → New |
Changed in opencryptoki: | |
status: | New → Incomplete |
Changed in opencryptoki: | |
status: | Incomplete → New |
Changed in opencryptoki: | |
status: | New → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.