Re: [opencryptoki-users] fail to init token
Brought to you by:
ebarretto
From: YH C. <hue...@gm...> - 2006-01-26 02:27:11
|
Thanks for your pointers. I am using old version (seems not MMAP). $ pwd /usr/lib/pkcs11/methods $ pkcsconf -c 0 -iM PKCS#11 Info Version 2.1 Manufacuter: IBM AIX Software PKCS11 Flags: 0x0 Library Description: Meta PKCS11 LIBRARY Library Version 0.d I tried C_CloseAllSessions also to ensure all sessions are closed. It shows global sessions =3D 0 also... $ pkcsconf -c 0 -M Shared Memory Data Number of Slots: 1 Slot Number: 0 Present: 1 DLL Location: /usr/lib/pkcs11/stdll/PKCS11_4758.so Init Function: SC_Initialize Coorelator: 0 Global Sessions: 0x0 $ pkcsconf -c 0 -I Enter the SO PIN: ******** Enter a unique token label: testtoken Error Initializing Token: 0xB6 On 1/26/06, Steven Bade <sb...@au...> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Michael Halcrow wrote: > | On Wed, Jan 25, 2006 at 09:48:46AM +0800, YH Cheng wrote: > | > |>I am using openCryptoki to access IBM crypto card 4758 for my > |>project. > | > | > | What version of openCryptoki are you running? > | > | Mike > > Recomendation.. Stop pkcsslotd.. If you look for the shared memory > region and delete it.. if you are running newer, look in the directory > with the cnfig information and find the .apimap file and delete it (i > doubt you are getting this because slotd will not start if that exists) > > Somehow the system thinks that a session remains open on the device, so > it won't let you initialize... deleting the shm (which should > automatically occur when slotd is terminated (old model). I expect that > you killed a process that was using the token, and that the garbage > collection did not clean out the state. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFD16kqBKHgXq2RAKcRAn3BAJ4pLGBJSXibmShU8WIBycxiWge2SQCeOGXq > szfEfu8OQjn97YZIzVthVJ8=3D > =3DpfFz > -----END PGP SIGNATURE----- > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > _______________________________________________ > opencryptoki-users mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opencryptoki-users > |