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
I first tried to fix it like this:
mkdir /usr/share/opensc archive. ubuntu. com/ubuntu/ pool/universe/ o/opensc/ opensc_ 0.11.13. orig.tar. gz 0.11.13. orig.tar. gz 0.11.13/ src/pkcs15init/ *profile /usr/share/opensc/ 0.11.13. orig.tar. gz
wget http://
tar -xzf opensc_
cp opensc-
rm -Rf opensc-0.11.13 opensc_
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: c:99:iso7816_ check_sw: File not found c:462:iso7816_ select_ file: returning with: File not found c:467:entersafe _select_ fid: APDU transmit failed: File not found 554:sc_ select_ file: returning with: File not found sec.c:56: select_ key_file: sc_select_file() failed: File not found sec.c:260: sc_pkcs15_ compute_ signature: Unable to select private key file: File not found
[opensc-pkcs11] iso7816.
[opensc-pkcs11] iso7816.
[opensc-pkcs11] card-entersafe.
[opensc-pkcs11] card.c:
[opensc-pkcs11] pkcs15-
[opensc-pkcs11] pkcs15-
C_Sign failed: 5
more to follow, just have to reboot my system ;-)