OpenCT

CTAPI is Article description::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.

USE flags
Portage knows the global  USE flag for enabling support for OpenCT in other packages. Enabling this USE flag will pull in automatically:

Other USE flags of openct include:

Emerge
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:

OpenRC
To tart OpenCT:

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

Listing readers
List all detected cardreaders:

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