A number of functions in the library read from a configuration
file. This file is searched for in /etc/gpkcs11.rc
,
$HOME/.gpkcs11.rc
and gpkcs11.rc
in the current directory
in this order. If any of file later in this list found than a prior one
it takes precedence over the formar one.
The Format of this configuration file is similar to the windows ini file
and is seperated into sections. The pkcs interface library uses one
section, but third party tokens may define additional section to use. A
section is defined by giving its name enclosed in brackets ('[]
')
and continues until the end of the file or the start of a new section.
Each configuration line is made up of a name and value of a variable
seperated by an equal sign ('=
'). The name may not contain any
white space and is case sensitive. White space sourrounding the
seperator is ignored and striped from the value as a string. The value
contains all characters after leading white space to the end of the
line.
Empty lines are ignored. Lines that begin with a hash mark ('#
')
are taken as comments and ignored as well.
[PKCS11-DLL] TokenList = CEAY-TOKEN #ExtraLibraryPath = /path/to/additional/libaries/needed/by/other/libs/ LoggingFile = /path/to/log_file_name MemLoggingFile = /path/to/mem_log_file_name LoggingLevel = 3 [CEAY-TOKEN] TokenDLL = /path/to/your/libceay_tok.so.1.0.1 InitSym = ceayToken_init PersistentDataFile = /home/lbe/.gpkcs_data cryptoDll = /path/to/your/libcrypto.so.0.9.4
TokenDLL
and
InitSym
fields and gpkcs11 tries to initialize the tokens
in the order they are listed in this field.
/tmp/pkcs11.log
resp. c:\\pkcs11.log
You can change the default by setting the environmet variable GPKCS11_LOG
.
/tmp/pkcs11.mem.log
resp. c:\\pkcs11.mem.log
You can change the default by setting the environmet variable GPKCS11_MEMLOG
.
each entry of the DllSymbolicNameList is repeated on an individual line in the config files that states the path to the library. These pathes need to be absolute.
Go to the first, previous, next, last section, table of contents.