home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20110502.etc.tar.gz / bradford.20110502.etc.tar / etc / opensc.conf < prev    next >
Text File  |  2006-05-02  |  8KB  |  282 lines

  1. # Configuration file for OpenSC
  2. # Example configuration file
  3.  
  4. # NOTE: All key-value pairs must be terminated by a semicolon.
  5.  
  6. # Default values for any application
  7. # These can be overrided by an application
  8. # specific configuration block.
  9. app default {
  10.     # Amount of debug info to print
  11.     #
  12.     # A greater value means more debug info.
  13.     # Default: 0
  14.     #
  15.     debug = 0;
  16.  
  17.     # The file to which debug output will be written
  18.     #
  19.     # A special value of 'stdout' is recognized.
  20.     # Default: stdout
  21.     #
  22.     # debug_file = /tmp/opensc-debug.log;
  23.  
  24.     # The file to which errors will be written
  25.     #
  26.     # A special value of 'stderr' is recognized.
  27.     # Default: stderr
  28.     #
  29.     # error_file = /tmp/opensc-errors.log;
  30.  
  31.     # Where to find the *.profile files for pkcs15init;
  32.  
  33.     profile_dir = /usr/share/opensc;
  34.  
  35.     # What reader drivers to load at start-up
  36.     #
  37.     # A special value of 'internal' will load all
  38.     # statically linked drivers. If an unknown (ie. not
  39.     # internal) driver is supplied, a separate configuration
  40.     # configuration block has to be written for the driver.
  41.     # Default: internal
  42.     # NOTE: if "internal" keyword is used, must be the 
  43.     # last entry in reader_drivers list
  44.     #
  45.     # reader_drivers = openct, pcsc, ctapi;
  46.  
  47.     reader_driver ctapi {
  48.         # module /usr/local/towitoko/lib/libtowitoko.so {
  49.             # CT-API ports:
  50.             # 0..3        COM1..4
  51.             # 4        Printer
  52.             # 5        Modem
  53.             # 6..7        LPT1..2
  54.             # ports = 0;
  55.         # }
  56.     }
  57.  
  58.     # Define parameters specific to your readers.
  59.     # The following section shows definitions for PC/SC readers,
  60.     # but the same set of variables are applicatable to ctapi and
  61.     # openct readers, simply by using "reader_driver ctapi" and
  62.     # "reader_driver openct", respectively.
  63.     reader_driver pcsc {
  64.         # Whether to transform some APDU's from one case to another
  65.         # Possible values:
  66.         #            none:   Don't transform any APDU's
  67.         #        case4as3:   For T=0, send a case 4 APDU as case 3,
  68.         #                    (no Lc byte) the card will send back
  69.         #              a 61xx SW, and we will follow up with a
  70.         #                    GetResponse command
  71.         #                    The SCM SCR111, Sun SCF, and e-gate readers
  72.         #                    seem to require this.
  73.         #        case1as2:   For T=0, send a case 1 APDU as case 2.
  74.         #                    (append an Le byte of 0)
  75.         #                    The Sun SCF and e-gate readers seem to
  76.         #                    require this
  77.         # case1as2_always:   for any T=0/1, send a case 1 APDU as
  78.         #             case 2.
  79.         #                    The Sun SCF reader may require this
  80.         # Default: none
  81.         #
  82.         apdu_masquerade = none;
  83.         #
  84.         # This sets the maximum send and receive sizes.
  85.         # Some IFD handlers do not properly handle APDUs with
  86.         # large lc or le bytes.
  87.         #
  88.         max_send_size = 252;
  89.         max_recv_size = 252;
  90.     }
  91.  
  92.     # What card drivers to load at start-up
  93.     #
  94.     # A special value of 'internal' will load all
  95.     # statically linked drivers. If an unknown (ie. not
  96.     # internal) driver is supplied, a separate configuration
  97.     # configuration block has to be written for the driver.
  98.     # Default: internal
  99.     # NOTE: When "internal" keyword is used, must be last entry 
  100.     #
  101.     # card_drivers = customcos, internal;
  102.  
  103.     # Card driver configuration blocks. 
  104.  
  105.     # For all drivers, you can specify ATRs of cards that
  106.     # should be handled by this driver (in addition to the
  107.     # list of compiled-in ATRs). 
  108.     #
  109.     # The supported internal card driver names are
  110.     #  flex        Cryptoflex/Multiflex
  111.     #  setcos    Setec
  112.     #  etoken    Aladdin eToken and other CardOS based cards
  113.     #  gpk        GPK 4K/8K/16K
  114.     #  mcrd        MICARDO 2.1
  115.     #  miocos    MioCOS 1.1
  116.     #  openpgp    OpenPGP card
  117.     #  tcos        TCOS 2.0
  118.     #  emv        EMV compatible cards
  119.  
  120.     # GPK card driver additional ATR entry:
  121.     card_driver gpk {
  122.         # atr = 00:11:22;
  123.     }
  124.  
  125.     # For card drivers loaded from an external shared library/DLL, 
  126.     # you need to specify the path name of the module
  127.     #
  128.     # card_driver customcos {
  129.         # The location of the driver library
  130.         # module = /usr/lib/opensc/drivers/card_customcos.so;
  131.         # atr = 00:11:22:33:44;
  132.         # atr = 55:66:77:88:99:aa:bb;
  133.     # }
  134.  
  135.     # Force using specific card driver
  136.     #
  137.     # If this option is present, OpenSC will use the supplied
  138.     # driver with all inserted cards.
  139.     #
  140.     # Default: autodetect
  141.     #
  142.     # force_card_driver = miocos;
  143.  
  144.     # Below are the framework specific configuration blocks.
  145.  
  146.     # PKCS #15
  147.     framework pkcs15 {
  148.         # Whether to use the cache files in the user's
  149.         # home directory.
  150.         #
  151.         # At the moment you have to 'teach' the card to the
  152.         # system by:
  153.         # pkcs15-tool -L
  154.         #
  155.         # WARNING: Caching shouldn't be used in setuid root
  156.         # applications.
  157.         # Default: false
  158.         #
  159.         use_caching = true;
  160.         # Enable pkcs15 emulation
  161.         # Default: yes
  162.         enable_pkcs15_emulation = yes;
  163.         # Try pkcs15 emulation code first (before the normal
  164.         # pkcs15 processing).
  165.         # Default: no
  166.         try_emulation_first = no;
  167.         # Enable builtin emulators
  168.         # Default: yes
  169.         enable_builtin_emulation = yes;
  170.         # list of the builtin pkcs15 emulators to test
  171.         # possible values: esteid, openpgp, netkey, netkey, starcert, infocamere
  172.         builtin_emulators = esteid, openpgp, netkey, netkey, starcert, infocamere;
  173.  
  174.         # additional pkcs15 emulators (dynamic or builtin with
  175.         # a different atr etc.) 
  176.         # emulate foo {
  177.             # module = builtin;
  178.             # atr = 11:22:33:44;
  179.         #}
  180.     }
  181.     
  182.     # Estonian ID card and Micardo driver currently play together with T=0 only.
  183.     # In theory only the 'cold' ATR should be specified, as T=0 will be the preferred
  184.     # protocol once you boot it up with T=0, but be paranoid.
  185.     
  186.     # Generic format: card_atr <hex encoded ATR (case-sensitive!)>
  187.     # Only parameter currently understood is force_protocol
  188.     card_atr 3b:6e:00:ff:45:73:74:45:49:44:20:76:65:72:20:31:2e:30 {
  189.         force_protocol = t0;
  190.     }
  191.     card_atr 3b:fe:94:00:ff:80:b1:fa:45:1f:03:45:73:74:45:49:44:20:76:65:72:20:31:2e:30:43 {
  192.         force_protocol = t0;
  193.     }
  194. }
  195.  
  196. # For applications that use SCAM (pam_opensc, sia_opensc)
  197. app scam {
  198.     framework pkcs15 {
  199.         use_caching = false;
  200.     }
  201. }
  202.  
  203. # Parameters for the OpenSC PKCS11 module
  204. app opensc-pkcs11 {
  205.     pkcs11 {
  206.         # Maxmimum number of slots per smart card.
  207.         # If the card has fewer keys than defined here,
  208.         # the remaining number of slots will be empty.
  209.         #
  210.         # Note that there is currently a compile time
  211.         # maximum on the overall number of slots
  212.         # the pkcs11 module is able to handle.
  213.         num_slots = 4;
  214.  
  215.         # Normally, the pkcs11 module will create
  216.         # the full number of slots defined above by
  217.         # num_slots. If there are fewer pins/keys on
  218.         # the card, the remaining keys will be empty
  219.         # (and you will be able to create new objects
  220.         # within them).
  221.         #
  222.         # Set this option to true to hide these empty
  223.         # slots.
  224.         hide_empty_tokens = false;
  225.  
  226.         # By default, the OpenSC PKCS#11 module will
  227.         # try to lock this card once you have authenticated
  228.         # to the card via C_Login. This is done so that no
  229.         # other user can connect to the card and perform
  230.         # crypto operations (which may be possible because
  231.         # you have already authenticated with the card).
  232.         #
  233.         # However, this also means that no other application
  234.         # that _you_ run can use the card until your application
  235.         # has done a C_Logout or C_Finalize. In the case of
  236.         # Netscape or Mozilla, this does not happen until
  237.         # you exit the browser.
  238.         lock_login = true;
  239.  
  240.         # Normally, the pkcs11 module will not cache PINs
  241.         # presented via C_Login. However, some cards
  242.         # may not work properly with OpenSC; for instance
  243.         # when you have two keys on your card that get
  244.         # stored in two different directories.
  245.         #
  246.         # In this case, you can turn on PIN caching by setting
  247.         # cache_pins = true
  248.         #
  249.         # Default: false
  250.         cache_pins = false;
  251.  
  252.         # Set this value to false if you want to enfore on-card
  253.         # keypair generation
  254.         #
  255.         # Default: true
  256.         soft_keygen_allowed = true;
  257.     }
  258. }
  259.  
  260. # Parameters for the OpenSC PKCS11-Spy module, that logs all the
  261. # communication between a pkcs11 module and it's calling application:
  262. #    app <--> pkcs11-spy <--> pkcs11 module
  263. app pkcs11-spy {
  264.     spy {
  265.         # Where to log to.
  266.         #
  267.         # By default, the value of the PKCS11SPY_OUTPUT environment
  268.         # variable is used. And if that one isn't defined: stderr
  269.         # is used.
  270.         #
  271.         #output = /tmp/pkcs11-spy.log;
  272.  
  273.         # Which PKCS11 module to load.
  274.         #
  275.         # By default, the value of the PKCS11SPY environment
  276.         # variable is used. And if that one isn't defined,
  277.         # opensc-pkcs11.so is used.
  278.         #
  279.         #module = opensc-pkcs11.so;
  280.     }
  281. }
  282.