I first tried to fix it like this:

mkdir /usr/share/opensc
wget 
http://archive.ubuntu.com/ubuntu/pool/universe/o/opensc/opensc_0.11.13.orig.tar.gz
tar -xzf opensc_0.11.13.orig.tar.gz
cp opensc-0.11.13/src/pkcs15init/*profile /usr/share/opensc/
rm -Rf opensc-0.11.13 opensc_0.11.13.orig.tar.gz

After this you can inititalize the card, but something is still broken. 
If you dump the card everything looks fine.

But when you try to use the pkcs15 token it fails mysteriously. The card
is not initialised correctly.

When i try to use this token on ubuntu 11.04 it fails too. But when i
reinitialize it on ubuntu 11.04 with exactly same commands and same p12
file it suddenly works.

this my error message under 11.04 with token initalized under 11.10:
[opensc-pkcs11] iso7816.c:99:iso7816_check_sw: File not found
[opensc-pkcs11] iso7816.c:462:iso7816_select_file: returning with: File not 
found
[opensc-pkcs11] card-entersafe.c:467:entersafe_select_fid: APDU transmit 
failed: File not found
[opensc-pkcs11] card.c:554:sc_select_file: returning with: File not found
[opensc-pkcs11] pkcs15-sec.c:56:select_key_file: sc_select_file() failed: File 
not found
[opensc-pkcs11] pkcs15-sec.c:260:sc_pkcs15_compute_signature: Unable to select 
private key file: File not found
C_Sign failed: 5

more to follow, just have to reboot my system ;-)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/872019

Title:
  pkcs15 profiles not packaged, pkcs15-init not functional

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/opensc/+bug/872019/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to