On Tue, Jan 25, 2011 at 06:20:44PM +0100, Alain Knaff wrote:
On 25/01/11 17:54, Lionel Elie Mamane wrote:
> On Tue, Jan 25, 2011 at 11:50:10AM +0100, Alain Knaff wrote:
>> Yesterday, I tried to follow your instructions
in
>>
http://c3l.lu/wiki/index.php/Luxtrust#Using_Open_source_tools , but
>> unfortunately the tools segfault:
> Here's a patch. Or use SVN revision r5052,
which as far as I remember
> does not have this bug yet. I'm filing the bug in their bug tracker.
Thanks. With this, pkcs15-tool works great, but
unfortunately not
pkcs11-tool:
/some/place/bin/pkcs11-tool --list-slots
Available slots:
Slot 0 (0x0): (GetSlotInfo failed, CKR_ARGUMENTS_BAD)
Slot 1 (0x1): Gemplus GemPC Key 00 00
(empty)
Slot 2 (0x2): Gemplus GemPC Key 00 00
(empty)
Slot 3 (0x3): Gemplus GemPC Key 00 00
(empty)
/some/place/bin/pkcs11-tool --slot-index 1 -l -O
Using slot with index 1 (0x1)
error: PKCS11 function C_OpenSession failed: rv = CKR_TOKEN_NOT_PRESENT (0xe0)
From what I experimentally observed, pkcs11-tool does
not load a
PKCS#11 module/middleware by default, but does not clearly say so. You
need to tell it to load the OpenSC PKCS#11 module (or the Gemalto
binary-only one, if that's what you want), just like the Mozilla
applications. It is as stupid as that :)
Try adding "--module=/opensc/prefix/lib/opensc-pkcs11.so".
--
Lionel