Hi,
I can't find the line mentioned to correct the issue as informed in the URL
https://bugzilla.redhat.com/show_bug.cgi?id=688837:
[root@cschimidt3 coolkey]# grep CKYBuffer_Size slot.cpp | grep cert
CKYSize certSize = CKYBuffer_Size(&rawCert);
CKYBuffer_InitFromBuffer(&cert,&rawCert,1,CKYBuffe r_Size(&rawCert)-1);
I could see in the messages log that Activkey was detected:
May 26 11:38:11 cschimidt3 kernel: [ 1459.874074] usb 5-1: new low speed USB device using ohci_hcd and address 4
May 26 11:38:12 cschimidt3 kernel: [ 1460.030086] usb 5-1: New USB device found, idVendor=09c3, idProduct=0003
May 26 11:38:12 cschimidt3 kernel: [ 1460.030105] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
May 26 11:38:12 cschimidt3 kernel: [ 1460.030122] usb 5-1: Product: Token-USB
May 26 11:38:12 cschimidt3 kernel: [ 1460.030128] usb 5-1: Manufacturer: ActivCard S.A.
I figure out that pcsc_scan hang if openct it was started:
[root@cschimidt3 pcsc]# pcsc_scan
PC/SC device scanner
V 1.4.17 (c) 2001-2009, Ludovic Rousseau <ludovic.rousseau@free.fr>
Compiled with PC/SC lite version: 1.6.4
Scanning present readers...
Waiting for the first reader...
And pkcs11-dump list slot 1 as "E-Gate"
[root@cschimidt3 ~]# pkcs11-dump slotlist /usr/lib64/pkcs11/libcoolkeypk11.so
pkcs11-dump 0.3.4 - PKI Cryptoki token dump
Written by Alon Bar-Lev
Copyright (C) 2005-2006 Alon Bar-Lev.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1 E-Gate 0 0
After stop openct and restar pcsc:
[root@cschimidt3 ]# pkcs11-dump slotlist /usr/lib64/pkcs11/libcoolkeypk11.so
pkcs11-dump 0.3.4 - PKI Cryptoki token dump
Written by Alon Bar-Lev
Copyright (C) 2005-2006 Alon Bar-Lev.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1 SCM SCR 3340 ExpressCard54 [CCID Interface] (00000000000000) 00
But it's not possible see the Activkey TOKEN-USB.
[root@cschimidt3 linux]# export COOL_KEY_LOG_FILE=/tmp/cool.log
[root@cschimidt3 linux]# pkcs11_listcerts debug
DEBUG:pam_config.c:238: Using config file /etc/pam_pkcs11/pam_pkcs11.conf
DEBUG:pkcs11_lib.c:182: Initializing NSS ...
DEBUG:pkcs11_lib.c:192: Initializing NSS ... database=/etc/pki/nssdb
DEBUG:pkcs11_lib.c:210: ... NSS Complete
DEBUG:pkcs11_listcerts.c:69: loading pkcs #11 module...
DEBUG:pkcs11_lib.c:222: Looking up module in list
DEBUG:pkcs11_lib.c:225: modList = 0x12a16a0 next = 0x12b5d80
DEBUG:pkcs11_lib.c:226: dllName= <null>
DEBUG:pkcs11_lib.c:225: modList = 0x12b5d80 next = 0x0
DEBUG:pkcs11_lib.c:226: dllName= libcoolkeypk11.so
DEBUG:pkcs11_listcerts.c:77: initialising pkcs #11 module...
DEBUG:pkcs11_listcerts.c:94: no token available
[root@cschimidt3 linux]# cat /tmp/cool.log
Initialize called, hello 5
C_GetInfo called
C_GetSlotList called
calling IsConnected
card changed
cleared all sessions
isTokenPresent, card state is 0x1
C_GetSlotList called
calling IsConnected
card changed
cleared all sessions
isTokenPresent, card state is 0x1
Called C_GetSlotInfo
calling IsConnected
card changed
cleared all sessions
isTokenPresent, card state is 0x1
Called C_GetSlotInfo
calling IsConnected
card changed
cleared all sessions
isTokenPresent, card state is 0x1
C_CloseAllSessions(0x1) called
Finalizing...
[root@cschimidt3 ~]# lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 138a:0007 DigitalPersona, Inc Fingeprint Reader
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 03f0:231d Hewlett-Packard
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 007: ID 09c3:0003 ActivCard, Inc.
Bus 004 Device 004: ID 046d:c51b Logitech, Inc. V220 Cordless Optical Mouse for Notebooks
Bus 004 Device 003: ID 04e6:5119 SCM Microsystems, Inc. SCR3340 - ExpressCard54 Smart Card Reader
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 090c:1000 Feiya Technology Corp. Flash Drive
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[root@cschimidt3 ~]# rpm -q pcsc-lite coolkey ccid pam_pkcs11 ifd-egate
pcsc-lite-1.6.4-4.fc14.x86_64
coolkey-1.1.0-17.fc14.x86_64
ccid-1.4.0-2.fc14.x86_64
pam_pkcs11-0.6.2-6.fc14.x86_64
ifd-egate-0.05-22.x86_64
I'd appreciate any help
Thanks