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.
Some packages are aware of the USE=pcsc-lite USE flag.
USE flags for sys-apps/pcsc-lite PC/SC Architecture smartcard middleware library
||Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally|
||limit RAM and CPU ressources by disabling features|
||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 smartcards to given users.|
||!!internal use only!! Security Enhanced Linux support, this must be set by the selinux profile or breakage will occur|
||Enable use of systemd-specific libraries and features like socket activation or session tracking|
||Use virtual/libudev 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.|
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.
With hotplug enabled, pcscd will start on plugging the card reader. It wil also start at boot time with the card reader already plugged.
* Hotplug support is provided by udev rules. * When using OpenRC you additionally need to tell it to hotplug * pcscd by setting this variable in /etc/rc.conf: * * rc_hotplug="pcscd"
With hotplug not enabled, pcscd needs to be started manually:
rc-service pcscd start
To start PCSC-Lite at boot time but without hotplug support, 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.