2002-03-24 14:12:38 +00:00
|
|
|
# Configuration file for OpenSC
|
|
|
|
# Example configuration file
|
|
|
|
|
2002-03-24 22:47:35 +00:00
|
|
|
# NOTE: All key-value pairs must be terminated by a semicolon.
|
|
|
|
|
2002-03-24 16:57:39 +00:00
|
|
|
# Default values for any application
|
2002-03-24 22:47:35 +00:00
|
|
|
# These can be overrided by an application
|
2002-03-24 16:57:39 +00:00
|
|
|
# specific configuration block.
|
|
|
|
app default {
|
2002-03-24 22:47:35 +00:00
|
|
|
# Amount of debug info to print
|
|
|
|
#
|
|
|
|
# A greater value means more debug info.
|
|
|
|
# Default: 0
|
|
|
|
#
|
2002-03-24 17:50:20 +00:00
|
|
|
debug = 0;
|
2002-03-24 22:47:35 +00:00
|
|
|
|
|
|
|
# The file to which debug output will be written
|
|
|
|
#
|
|
|
|
# A special value of 'stdout' is recognized.
|
|
|
|
# Default: stdout
|
|
|
|
#
|
|
|
|
# debug_file = /tmp/opensc-debug.log;
|
|
|
|
|
|
|
|
# The file to which errors will be written
|
|
|
|
#
|
|
|
|
# A special value of 'stderr' is recognized.
|
|
|
|
# Default: stderr
|
|
|
|
#
|
|
|
|
# error_file = /tmp/opensc-errors.log;
|
|
|
|
|
|
|
|
# What reader drivers to load at start-up
|
|
|
|
#
|
|
|
|
# A special value of 'internal' will load all
|
|
|
|
# statically linked drivers. If an unknown (ie. not
|
|
|
|
# internal) driver is supplied, a separate configuration
|
|
|
|
# configuration block has to be written for the driver.
|
|
|
|
# Default: internal
|
|
|
|
#
|
|
|
|
# reader_drivers = pcsc, ctapi;
|
|
|
|
|
2002-03-26 11:38:40 +00:00
|
|
|
reader_driver ctapi {
|
|
|
|
module /usr/local/towitoko/lib/libtowitoko.so {
|
|
|
|
# CT-API ports:
|
|
|
|
# 0..3 COM1..4
|
|
|
|
# 4 Printer
|
|
|
|
# 5 Modem
|
|
|
|
# 6..7 LPT1..2
|
|
|
|
ports = 0;
|
|
|
|
}
|
|
|
|
# module /usr/local/lib/ctapi/ctapi2.so {
|
|
|
|
# ports = 1, 6;
|
|
|
|
# }
|
|
|
|
}
|
|
|
|
|
2002-06-14 11:52:20 +00:00
|
|
|
reader_driver pcsc {
|
|
|
|
# Whether to convert Case 4 APDUs to Case 3
|
|
|
|
#
|
|
|
|
# At least SCM SCR111 reader seems to require this.
|
|
|
|
# Default: false
|
|
|
|
#
|
|
|
|
apdu_fix = false;
|
|
|
|
}
|
|
|
|
|
2002-03-26 11:38:40 +00:00
|
|
|
# What card drivers to load at start-up
|
2002-03-24 22:47:35 +00:00
|
|
|
#
|
|
|
|
# A special value of 'internal' will load all
|
|
|
|
# statically linked drivers. If an unknown (ie. not
|
|
|
|
# internal) driver is supplied, a separate configuration
|
|
|
|
# configuration block has to be written for the driver.
|
|
|
|
# Default: internal
|
|
|
|
#
|
|
|
|
# card_drivers = internal, customcos;
|
|
|
|
|
2002-12-03 15:40:53 +00:00
|
|
|
# Card driver configuration blocks. For card drivers loaded
|
|
|
|
# from an external shared library/DLL, you need to specify
|
|
|
|
# the path name of the module, and the name of the constructor
|
|
|
|
# function.
|
|
|
|
# WARNING: this is not implemented yet.
|
|
|
|
#
|
|
|
|
# For all drivers, you can specify ATRs of cards that
|
|
|
|
# should be handled by this driver (in addition to the
|
|
|
|
# list of compiled-in ATRs). To do so, specify
|
|
|
|
#
|
|
|
|
# card_driver foo {
|
|
|
|
# atr = 00:11:22:33:44;
|
|
|
|
# atr = 55:66:77:88:99:aa:bb;
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
# The card driver names are
|
|
|
|
# flex Cryptoflex/Multiflex
|
|
|
|
# setcos Setec
|
|
|
|
# etoken Aladdin eToken
|
|
|
|
# gpk GPK 4K/8K/16K
|
|
|
|
# mcrd MICARDO 2
|
|
|
|
# miocos MioCOS 1.1
|
|
|
|
# tcos TCOS 2.0
|
|
|
|
# emv EMV compatible cards
|
|
|
|
|
2002-03-24 22:47:35 +00:00
|
|
|
# card_driver customcos {
|
|
|
|
# The location of the driver library
|
|
|
|
#
|
|
|
|
# module = /usr/lib/opensc/drivers/card_customcos.so
|
|
|
|
# }
|
|
|
|
|
2002-12-03 15:40:53 +00:00
|
|
|
# GPK card driver
|
|
|
|
card_driver gpk {
|
|
|
|
# atr = 00:11:22;
|
|
|
|
}
|
|
|
|
|
2002-04-19 20:07:56 +00:00
|
|
|
# Force using specific card driver
|
|
|
|
#
|
|
|
|
# If this option is present, OpenSC will use the supplied
|
|
|
|
# driver with all inserted cards.
|
|
|
|
#
|
|
|
|
# Default: autodetect
|
|
|
|
#
|
|
|
|
# force_card_driver = miocos;
|
|
|
|
|
2002-03-24 22:47:35 +00:00
|
|
|
# Below are the framework specific configuration blocks.
|
|
|
|
|
|
|
|
# PKCS #15
|
|
|
|
framework pkcs15 {
|
|
|
|
# Whether to use the cache files in the user's
|
|
|
|
# home directory.
|
2002-04-19 20:07:56 +00:00
|
|
|
#
|
|
|
|
# At the moment you have to 'teach' the card to the
|
|
|
|
# system by:
|
|
|
|
# pkcs15-tool -L
|
|
|
|
#
|
|
|
|
# WARNING: Caching shouldn't be used in setuid root
|
2002-03-24 22:47:35 +00:00
|
|
|
# applications.
|
|
|
|
# Default: false
|
|
|
|
#
|
|
|
|
use_caching = true;
|
|
|
|
}
|
2002-03-24 16:57:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# For applications that use SCAM (pam_opensc, sia_opensc)
|
|
|
|
app scam {
|
2002-03-24 22:47:35 +00:00
|
|
|
framework pkcs15 {
|
|
|
|
use_caching = false;
|
|
|
|
}
|
2002-03-24 14:12:38 +00:00
|
|
|
}
|