| 1 |
.TH OPENCRYPTOKI.CONF 5 "September 2012" "@PACKAGE_VERSION@" "openCryptoki" |
| 2 |
.SH NAME |
| 3 |
opencryptoki.conf \- Configuration file for pkcsslotd. |
| 4 |
|
| 5 |
.SH DESCRIPTION |
| 6 |
pkcsslotd uses a configuration file at /etc/opencryptoki/opencryptoki.conf |
| 7 |
|
| 8 |
This is a text file that contains information used to configure |
| 9 |
pkcs#11 slots. At startup, the pkcsslotd daemon parses this file to |
| 10 |
determine which slots will be made available. |
| 11 |
|
| 12 |
.SH SYNTAX |
| 13 |
This file is made up of optional global definitions, and slot descriptions. |
| 14 |
|
| 15 |
The following global definitions are valid: |
| 16 |
|
| 17 |
.TP |
| 18 |
.BR disable-event-support |
| 19 |
If this keyword is specified the openCryptoki event support is disabled. |
| 20 |
|
| 21 |
.TP |
| 22 |
.BR statistics\~(off | on [ ,implicit ][ ,internal ] ) |
| 23 |
Enables or disables collection of statistics of mechanism usage. By default, |
| 24 |
statistics collection is enabled. A value of \fB(off)\fP disables all statistics |
| 25 |
collection. A value of \fB(on)\fP enables collection of mechanism usage. |
| 26 |
The collected statistics can be displayed using the \fBpkcsstats\fP tool. |
| 27 |
|
| 28 |
In addition to enabling statistics collection for mechanisms used by PKCS#11 |
| 29 |
applications, you can specify \fB(on,implicit)\fP to also enable collection |
| 30 |
of implicit mechanism usage, where additional mechanisms are specified in |
| 31 |
mechanism parameters. For example, RSA-PSS or RSA-OAEP allow to specify a hash |
| 32 |
mechanism and a mask generation function (MGF) in the mechanism parameter. |
| 33 |
ECDH allows to specify a key derivation function (KDF) in the mechanism |
| 34 |
parameter. |
| 35 |
|
| 36 |
You can additionally enable statistics collection of mechanisms internally used |
| 37 |
by Opencryptoki by specifying \fB(on,internal)\fP. This additionally collects |
| 38 |
usage statistics for crypto operations used internally for pin handling and |
| 39 |
encryption of private token objects in the data store. |
| 40 |
|
| 41 |
Implicit and internal statistics collection can also be combined: |
| 42 |
\fB(on,implicit,internal)\fP |
| 43 |
|
| 44 |
.P |
| 45 |
Each slot description is composed of a slot number, brackets and key-value pairs. |
| 46 |
|
| 47 |
slot number |
| 48 |
{ |
| 49 |
key = value |
| 50 |
... |
| 51 |
} |
| 52 |
|
| 53 |
More than one key-value pair may be used within a slot description. |
| 54 |
|
| 55 |
A key-value pair is composed of, |
| 56 |
.B keyword = value. |
| 57 |
|
| 58 |
The following keywords are valid: |
| 59 |
|
| 60 |
.TP |
| 61 |
.BR description |
| 62 |
A Description of the slot. PKCS#11v2.20 defined this as a 64-byte max |
| 63 |
character-string. |
| 64 |
.TP |
| 65 |
.BR stdll |
| 66 |
This keyword is used to define the name of the stdll or token library that |
| 67 |
will be used for this slot. The stdll is an available token library in |
| 68 |
opencryptoki. |
| 69 |
.TP |
| 70 |
.BR manufacturer |
| 71 |
This keyword is used to name the ID of the slot manufacturer. PKCS#11v2.20 |
| 72 |
defines this as a 32 byte long string. |
| 73 |
.TP |
| 74 |
.BR hwversion |
| 75 |
Version number of the slot's hardware, if any. The version number is composed |
| 76 |
of a major version number (the integer portion of the version) and a |
| 77 |
minor version number (the hundredths portion of the version). |
| 78 |
For example, version 1.2, major = 1, minor = 2 |
| 79 |
.TP |
| 80 |
.BR firmwareversion |
| 81 |
Version number of the slot's firmware, if any. The version number is composed |
| 82 |
of a major version number (the integer portion of the version) and a |
| 83 |
minor version number (the hundredths portion of the version). |
| 84 |
.TP |
| 85 |
.BR confname |
| 86 |
If the slot is associated with a token that has its own configuration file, |
| 87 |
this option identifies the name of that configuration file. |
| 88 |
For example, confname=ep11tok.conf |
| 89 |
.TP |
| 90 |
.BR tokname |
| 91 |
If a token want to have its own token directory name that is different from the |
| 92 |
default name, especially if multiple tokens of the same type are configured, |
| 93 |
this option defines the name of the token individual directory. |
| 94 |
For example, tokname=ep11tok01 |
| 95 |
|
| 96 |
Note: This key-value pair is optional: If only one token per token type is used, |
| 97 |
you don't need that entry. In that case the default directory name is used. |
| 98 |
.TP |
| 99 |
.BR tokversion |
| 100 |
Version number of the slot's token of the form <major>.<minor>. |
| 101 |
.TP |
| 102 |
.BR usergroup |
| 103 |
Specifies the name of a user group that is set as the owner of the token |
| 104 |
directory. Only users that are members of this group have access to the token |
| 105 |
and its objects. Users that are not a member of this group will not see the |
| 106 |
token as being available (e.g. via \fBpkcsconf -t\fP or via |
| 107 |
\fBC_GetTokenInfo\fP). All uses that are a member of this group must also be |
| 108 |
members of the \fB@pkcs_group@\fP group to be able to use Opencryptoki. |
| 109 |
|
| 110 |
Note: This key-value pair is optional: If not specified, the token belongs |
| 111 |
to the \fB@pkcs_group@\fP group. |
| 112 |
|
| 113 |
.SH Notes |
| 114 |
The pound sign ('#') is used to indicate a comment. |
| 115 |
Both the comment character and any text after it, up to the end of the line, |
| 116 |
are ignored. The comment character cannot be used inside the brackets of |
| 117 |
slot descriptions, as this will cause a syntax error. |
| 118 |
|
| 119 |
.SH "SEE ALSO" |
| 120 |
.PD 0 |
| 121 |
.TP |
| 122 |
\fBopencryptoki\fP(7), |
| 123 |
.TP |
| 124 |
\fBpkcsslotd\fP(8), |
| 125 |
.TP |
| 126 |
\fBpkcsstats\fP(1), |
| 127 |
.PD |