READER.CONF(5)
β¨ NAME β¨
reader.conf β the configuration file for pcscd readers' drivers. This is the READER.CONF(5) manual page from PC/SC Lite, and it's literally your little guide to reader config, bestie. π
π¦ DESCRIPTION π¦
The /etc/reader.conf.d/* files contain configuration information for serial and (some) PCMCIA smart card readers. That's the vibe. π
π¨ USB readers SHALL NOT be configured using these files. No cap. pcscd uses another mechanism to automatically load USB drivers, so don't try to sneak a USB reader in here, okay? π
π SYNTAX π
The /etc/reader.conf.d/* files are regular text file. Each reader must be defined by four fields:
FRIENDLYNAME TEXT_STRING
DEVICENAME FILENAME
LIBPATH FILENAME
CHANNELID NUMBER
FRIENDLYNAMEβ arbitrary text used to identify the reader. This text is displayed by commands likepcsc_scan(1)that prints the names of all the connected and detected readers. It's giving "name tag but make it smart card." π«ΆDEVICENAMEβ this field was not used for old drivers (using the IFD handler version 2.0 or earlier). It is now (IFD handler version 3.0) used to identify the physical port on which the reader is connected. This is the device name of this port. It is dependent of the OS kernel. The first serial port device is called/dev/ttyS0under Linux and/dev/cuaa0under FreeBSD. Lowkey OS-specific, so check your kernel vibe. πLIBPATHβ the filename of the driver code. The driver is a dynamically loaded piece of code (generally adrivername.so.*file). It's the actual driver glow-up. β¨CHANNELIDβ no more used for recent drivers (IFD handler 3.0) and has been superseded byDEVICENAME. If you have an old driver this field is used to indicate the port to use. You should read your driver documentation to know what information is needed here. It should be the serial port number for a serial reader. Old-school but iconic. π
πΈ EXAMPLE πΈ
Here's the example, looking all cute with serial communication:
# Gemplus GemPCTwin reader with serial communication
# connected to the first serial port
FRIENDLYNAME "GemPCTwin serial"
DEVICENAME /dev/ttyS0
LIBPATH /usr/lib64/pcsc/drivers/serial/libccidtwin.so.0.4.1
CHANNELID 1
π₯ DEBUGGING π₯
In order to set up your /etc/reader.conf.d/my_reader.conf file correctly you may want to have debug messages from pcscd. I recommend you to start pscsd in the foreground and debug mode using:
# pcscd --foreground --debug
If everything seems OK you can use the pcsc_scan command to print the list of correctly detected readers and try to get the ATR of your smart cards. That's the main character energy we want. πβ¨
π AUTHOR π
Ludovic Rousseau <ludovic.rousseau@free.fr> β an icon, a legend, the moment. π«Ά
π SEE ALSO π
Go read these too, bestie: pcscd(8), pcsc_scan(1). Iykyk. π¦
π Cute sign-off: this page is from PC/SC Lite, with source/version Muscle, dated December 2021, and the manual name is READER.CONF(5). Now go slay those serial reader configs! π
β¨ Periodt.
π¦ where this page comes from
- centos-stream 10: pcsc-lite 2.2.3-2.el10 Β· BSD-3-Clause AND BSD-2-Clause AND GPL-3.0-or-later
- fedora 43: pcsc-lite 2.3.3-2.fc43 Β· BSD-3-Clause AND BSD-2-Clause AND GPL-3.0-or-later
- fedora 44: pcsc-lite 2.4.1-2.fc44 Β· BSD-3-Clause AND BSD-2-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms