>> The pcscd daemon simply refuses to work if either HAL or D-Bus is not 
>> installed and running.
>>     
>
> why do you want to use pcscd altogether? AFAIK the Aladdin eToken 64k
> are based on CardOS. That means, you can access them with the pkcs11
> library provided by OpenSC. That library is called opensc-pkcs11.so and
> it is able to interface with OpenCT directly [1].
That was caused by my smartcard not being recognised by openct (see the 
thread called "eToken PRO 64k"). I presume that was as a result of the 
ready-made pcsc dependencies when the rpm was compiled by the FC 
distributors. I saw this today when I looked at the .spec file. This is 
done for a purpose though - the gdm-smartcard-plugin package (which is 
part of gdm) depends on pcscd to allow desktop login with a smartcard - 
there was no other way I could get my smartcard working unless I install 
pcscd, pcsc-lite, pcsc-lite-libs AND pcsc-lite-openct. Absolute shambles!

Naturally, I assumed that I would need the exact same configuration in 
initrd/initramfs. I am glad I was wrong...

>  To get this to work,
> you have to compile OpenSC with explicit support for OpenCT. For
> example:
>
> ./configure --disable-pcsc --enable-openct --disable-openssl --disable-zlib
>   
THAT was the clincher!!! I did fiddle a bit with the .spec file to 
disable various (daft) options placed by FC distributors (I needed the 
rpm so that I could install it when I build the image), but after 
following your instructions (to the letter!) I was able to run this in a 
very limited system. Superb, thank you!

I also managed to extract and build the chain of dependencies, which is 
not at all that big (about 10-15 libraries, most of which are already on 
initrd/initramfs) and the bulk of these is part of openct/opensc, 
pcsc-lite-libs and ctapi-common, so nothing major.

In the next few days I will build the scripts for installing all files 
and automatically build initrd/initramfs and then will be in a position 
to test it. As I pointed out above I already tested 
pcsc-lite-libs+OpenCT+OpenSC (without anything else) and it works to 
absolute perfection, so hopefully the result would be the same when I 
test it inside the initrd/initramfs image.
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to