PCSC-Lite implements the PC/SC international standard for PC to smartcard reader communication.
The kernel configuration depends on how the card reader is connected:
- For USB card reader see the USB article.
- For PC-Card card reader see the PC-Card article.
- For serial card reader enable serial support.
USE flags for sys-apps/pcsc-lite PC/SC Architecture smartcard middleware library
||Use dev-libs/libusb detection to hotplug new smartcard readers. This flag should only be enabled if you're running a non-Linux kernel or you don't want to use sys-fs/udev.|
||Uses sys-auth/polkit to restrict access to smartcard readers or smartcars to given users.|
||Add optional support/bindings for the Python language|
||Use sys-fs/udev rules to handle devices' permissions and hotplug support. Unless you know what you're doing do not disable this flag on Linux kernels. This is provided as an option for completeness.|
PCSC-Lite support can be enabled system-wide by setting the
pcsc-lite USE flag:
USE="... pcsc-lite ..."
Update the system so the changes can take effect:
emerge --ask --changed-use --deep @world
emerge --ask --noreplace sys-apps/pcsc-lite
Install one or more of the following driver packages:
- app-crypt/asedriveiiie-serial - ASEDriveIIIe serial card reader
- app-crypt/asedriveiiie-usb - ASEDriveIIIe USB card reader
- app-crypt/asekey - ASEKey USB SIM card reader
- app-crypt/ccid - compatible CCID card reader
- app-crypt/coolkey - CoolKey and CAC card reader
- dev-libs/cyberjack - REINER SCT cyberJack pinpad/e-com card reader
- sys-apps/ifd-gempc - GemCore based card reader
- sys-apps/pcsc-slb-rf72-drv - Schlumberger Reflex 72 serial card reader
USB card readers are detected automatically and work out of the box. For PC-Card and serial card readers, /etc/reader.conf.d/reader.conf will need to be adjusted. See man reader.conf for more information.
To start PCSC-Lite:
rc-service pcscd start
To start PCSC-Lite at boot time, add it to the default runlevel:
rc-update add pcscd default
The PCSC-Lite daemon blocks all detected card readers for every other software.
Start the daemon in debug mode manually:
pcscd -a -d -f
The daemon will now output all detected card readers. If a card reader is not detected, the correct driver may not have been installed. If there is a detected card reader, insert a smartcard. The daemon should inform about this event and among other things output the ATR, e.g.:
00000028 Card ATR: 3B 75 94 00 00 62 02 02 03 01
If everything works the daemon can be killed with Ctrl+C.
- OpenCT — a German standard for PC to smartcard reader communication, which is implemented by OpenCT.