Re: [opencryptoki-users] fail to init token
Brought to you by:
ebarretto
From: Steven B. <sb...@au...> - 2006-01-27 12:49:55
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 YH Cheng wrote: | 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 = 0 also... CloseAllSessions only closes the sessions for that application.. it won't affect the value in shared memory if a prior process died... you need to find the shared memory segment (ipcs command can be used to list them) and remove it (alternativly, what happens if you reboot the system? New shared memory should be created) | | $ 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... | <mailto:sb...@au...>> wrote: | | 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. - ------------------------------------------------------- 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=lnk&kid=103432&bid=230486&dat=121642 <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642> _______________________________________________ opencryptoki-users mailing list ope...@li... <mailto:ope...@li...> https://lists.sourceforge.net/lists/listinfo/opencryptoki-users <https://lists.sourceforge.net/lists/listinfo/opencryptoki-users> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFD2hbpBKHgXq2RAKcRAqlvAKCQ51qFDeHbv7SJJY8tNhjurAlUtQCdFnQY 79Ohp3tkRszNtmcVlZT5gwE= =QFR9 -----END PGP SIGNATURE----- |