OpenCT

CTAPI is a german standard for PC to smartcard reader communication, which is implemented by OpenCT. The international standard is in contrast PC/SC.

Kernel
You have to enable kernel support depending on how your cardreader is connected:
 * For USB cardreader see the USB article.
 * For PC-Card cardreader see the PC-Card article.
 * For serial cardreader enable serial support.

Software
Portage knows the local USE flag openct for enabling support for OpenCT in other packages. Enabling this USE flag will pull in automatically:

The USE flags of openct are:

After setting this you want to update your system so the changes take effect:

Permissions
Add your user to the openct group to be able to access the cardreader:

Service
You can now start OpenCT:

To start OpenCT at boot time, add it your default runlevel:

Testing
List all detected cardreaders:

If there is a detected cardreader, insert a smartcard. Test the access by checking the ATR: