[Bug 926305] Re: fails to load modules for pkcs11 backends
** Changed in: opencryptoki Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/926305 Title: fails to load modules for pkcs11 backends To manage notifications about this bug go to: https://bugs.launchpad.net/opencryptoki/+bug/926305/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 926305] Re: fails to load modules for pkcs11 backends
** Changed in: opencryptoki Status: Incomplete = New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/926305 Title: fails to load modules for pkcs11 backends To manage notifications about this bug go to: https://bugs.launchpad.net/opencryptoki/+bug/926305/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 926305] Re: fails to load modules for pkcs11 backends
** Changed in: opencryptoki Status: New = Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/926305 Title: fails to load modules for pkcs11 backends To manage notifications about this bug go to: https://bugs.launchpad.net/opencryptoki/+bug/926305/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 926305] Re: fails to load modules for pkcs11 backends
FYI I am taking over maintenance of opencryptoki in Debian (http://bugs.debian.org/543925). Thomas Bushnell, BSG will sponsor an upload that contains a fix for this bug. The solution is to make pk_config_data contain fully qualified paths to the backend library files. I will ping this bug again when the package is uploaded in sid. ** Bug watch added: Debian Bug tracker #543925 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=543925 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/926305 Title: fails to load modules for pkcs11 backends To manage notifications about this bug go to: https://bugs.launchpad.net/opencryptoki/+bug/926305/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 926305] Re: fails to load modules for pkcs11 backends
** Bug watch added: Debian Bug tracker #640812 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=640812 ** Also affects: opencryptoki via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=640812 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/926305 Title: fails to load modules for pkcs11 backends To manage notifications about this bug go to: https://bugs.launchpad.net/opencryptoki/+bug/926305/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 926305] Re: fails to load modules for pkcs11 backends
** Changed in: opencryptoki Status: Unknown = New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/926305 Title: fails to load modules for pkcs11 backends To manage notifications about this bug go to: https://bugs.launchpad.net/opencryptoki/+bug/926305/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 926305] Re: fails to load modules for pkcs11 backends
Stéphane, it seems like this is not fixed yet. ubuntu@precise-thinkcentre:~$ dpkg -l | grep opencryptoki ii libopencryptoki0 2.3.1+dfsg-3ubuntu2 PKCS#11 implementation (library) ii opencryptoki 2.3.1+dfsg-3ubuntu2 PKCS#11 implementation (daemon) ubuntu@precise-thinkcentre:~$ sudo pkcsconf -i C_GetSlotCount returned 0 slots. Check that your tokens are installed correctly. ubuntu@precise-thinkcentre:~$ tail -2 /var/log/syslog Mar 20 13:12:11 precise-thinkcentre openCryptokiModule[3894]: DL_Load: dlopen() failed for [libpkcs11_tpm.so]; dlerror = [libpkcs11_tpm.so: cannot open shared object file: No such file or directory] Mar 20 13:12:11 precise-thinkcentre openCryptokiModule[3894]: DL_Load: dlopen() failed for [libpkcs11_sw.so]; dlerror = [libpkcs11_sw.so: cannot open shared object file: No such file or directory] ubuntu@precise-thinkcentre:~$ cat /var/lib/opencryptoki/pk_config_data TRUE|0|Linux 3.2.0-18-generic Linux (TPM)|Linux 3.2.0-18-generic|TRUE|FALSE|TRUE|0|0|1|1|NONE|libpkcs11_tpm.so|ST_Initialize TRUE|0|Linux 3.2.0-18-generic Linux (Soft)|Linux 3.2.0-18-generic|TRUE|FALSE|FALSE|0|0|1|1|NONE|libpkcs11_sw.so|ST_Initialize -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/926305 Title: fails to load modules for pkcs11 backends To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/opencryptoki/+bug/926305/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 926305] Re: fails to load modules for pkcs11 backends
This bug was fixed in the package opencryptoki - 2.3.1+dfsg-3ubuntu1 --- opencryptoki (2.3.1+dfsg-3ubuntu1) precise; urgency=low * Use *.so* instead of *.so.* in libopencryptoki0.install to also install the symlinks. (LP: #926305) -- Stephane Graber stgra...@ubuntu.com Tue, 13 Mar 2012 11:29:13 -0400 ** Changed in: opencryptoki (Ubuntu) Status: Confirmed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/926305 Title: fails to load modules for pkcs11 backends To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/opencryptoki/+bug/926305/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 926305] Re: fails to load modules for pkcs11 backends
** Changed in: opencryptoki (Ubuntu) Assignee: (unassigned) = Stéphane Graber (stgraber) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/926305 Title: fails to load modules for pkcs11 backends To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/opencryptoki/+bug/926305/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 926305] Re: fails to load modules for pkcs11 backends
I think I found the problem. In the lucid version of libopencryptoki0, there's an /etc/ld.so.conf.d /opencryptoki-x86_64.conf that includes /usr/lib/opencryptoki/stdll. That's how the lucid version was able to find the backend modules. This was removed in 2.3.1+dfsg-1. From the changelog: * debian/rules: - Do no install /etc/ld.so.conf.d/opencryptoki-i486.conf - Creating instead soft-links in /usr/lib The rules file does in fact create symlinks in /usr/lib. However, it creates symlinks for *.so.*, but pkcs11_startup creates configuration files that reference *.so. (Note the missing version in the filenames.) A simple fix would be to make symlinks for *.so* in /usr/lib. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/926305 Title: fails to load modules for pkcs11 backends To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/opencryptoki/+bug/926305/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 926305] Re: fails to load modules for pkcs11 backends
** Tags added: css-sponsored-p rls-mgr-p-tracking -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/926305 Title: fails to load modules for pkcs11 backends To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/opencryptoki/+bug/926305/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 926305] Re: fails to load modules for pkcs11 backends
Actually, just to be entirely clear, after installing the opencryptoki package, if you run pkcsconf -i, it does not return the error. You need to run pkcs11_startup first. Then, it fails with the C_GetSlotCount error described above. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/926305 Title: fails to load modules for pkcs11 backends To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/opencryptoki/+bug/926305/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 926305] Re: fails to load modules for pkcs11 backends
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: opencryptoki (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/926305 Title: fails to load modules for pkcs11 backends To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/opencryptoki/+bug/926305/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs