Hello,

I am using pkcs11-tool with the Aladdin's pkcs11-lib.
Many things work out fine.

But when I try to initialize a eTokenPro I get the following output:

[EMAIL PROTECTED] opensc-0.10.1]# pkcs11-tool --module
/usr/local/lib/libetpkcs11.so --init-token --label testToken
Please enter the new SO PIN:
Please enter the new SO PIN (again):
error: PKCS11 function C_InitToken failed: rv = CKR_DEVICE_ERROR (0x30)

Aborting.

When I take a look at pkcs11-global.c if find this code in C_Initialize.

rc = sc_establish_context(&context, "opensc-pkcs11");
        if (rc != 0) {
                rv = CKR_DEVICE_ERROR;
                goto out;
        }

opensc-pkcs11 looks somehow hardcoded. Is this a reason the --init-token
will not work with third-party pkcs11-libs?
Or is it a matter of the pkcs11-lib I am using?

Regards
Cornelius

-- 
Dipl.-Phys. Cornelius Kölbel (Security Consultant)
LSE Leading Security Experts GmbH
Postfach 100121, 64201 Darmstadt
fon        : +49 (0) 6151 / 9067-0      fax: - 299
             +49 (0) 561 / 31 66 797
mobil      : +49 (0) 160 / 9630 7089
http://www.lsexperts.de mailto:[EMAIL PROTECTED]

MAX21-Unternehmensgruppe

+-------------------------------------------------------------------------+
  Aladdin eToken und Linux?
  -> http://www.etokenonlinux.org
+-------------------------------------------------------------------------+

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to