| 1 |
.TH softhsm2.conf 5 "30 October 2014" "SoftHSM" |
| 2 |
.SH NAME |
| 3 |
softhsm2.conf \- SoftHSM configuration file |
| 4 |
.SH SYNOPSIS |
| 5 |
.B softhsm2.conf |
| 6 |
.SH DESCRIPTION |
| 7 |
This is the configuration file for SoftHSM. It can be found on a |
| 8 |
default location, but can also be relocated by using the |
| 9 |
environment variable. Any configuration must be done according |
| 10 |
to the file format found in this document. |
| 11 |
.SH FILE FORMAT |
| 12 |
Each configuration option is a pair of name and value separated by |
| 13 |
a equality sign. The configuration option must be located on a single line. |
| 14 |
.LP |
| 15 |
.RS |
| 16 |
.nf |
| 17 |
<name> = <value> |
| 18 |
.fi |
| 19 |
.RE |
| 20 |
.LP |
| 21 |
It is also possible to add comments in the file by using the hash sign. |
| 22 |
Anything after the hash sign will be ignored. |
| 23 |
.LP |
| 24 |
.RS |
| 25 |
.nf |
| 26 |
# A comment |
| 27 |
.RE |
| 28 |
.LP |
| 29 |
Any empty lines or lines that does not have the correct format will be ignored. |
| 30 |
.SH DIRECTORIES.TOKENDIR |
| 31 |
The location where SoftHSM can store the tokens. |
| 32 |
.LP |
| 33 |
.RS |
| 34 |
.nf |
| 35 |
directories.tokendir = @softhsmtokendir@ |
| 36 |
.fi |
| 37 |
.RE |
| 38 |
.LP |
| 39 |
.SH OBJECTSTORE.BACKEND |
| 40 |
The backend to use by SoftHSM to store token objects. Either "file" or "db" is supported. |
| 41 |
In order to use the "db" backend, the SoftHSM build needs to be configured with "configure --with-objectstore-backend-db" |
| 42 |
.LP |
| 43 |
.RS |
| 44 |
.nf |
| 45 |
objectstore.backend = file |
| 46 |
.fi |
| 47 |
.RE |
| 48 |
.LP |
| 49 |
.SH LOG.LEVEL |
| 50 |
The log level which can be set to ERROR, WARNING, INFO or DEBUG. |
| 51 |
.LP |
| 52 |
.RS |
| 53 |
.nf |
| 54 |
log.level = INFO |
| 55 |
.fi |
| 56 |
.RE |
| 57 |
.LP |
| 58 |
.SH SLOTS.REMOVABLE |
| 59 |
If set to true CKF_REMOVABLE_DEVICE is set in the flags returned by C_GetSlotInfo. Default is false. |
| 60 |
.LP |
| 61 |
.RS |
| 62 |
.nf |
| 63 |
slots.removable = true |
| 64 |
.fi |
| 65 |
.RE |
| 66 |
.LP |
| 67 |
.SH TOKEN.MECHANISMS |
| 68 |
Allows to enable and disable any of the PKCS#11 mechanisms reported in the |
| 69 |
C_GetMechanismList(). |
| 70 |
The option accepts string argument containing the comma separated list of all |
| 71 |
algorithms that should be enabled (do not forget about the keygen mechanisms). |
| 72 |
The list can be prefixed with minus sign "-" to list only the disabled |
| 73 |
mechanisms. |
| 74 |
Additionally, special keyword ALL can be used to enable all the known |
| 75 |
mechanisms (default). Unknown mechanisms are ignored. |
| 76 |
This option has higher priority than the CKA_ALLOWED_MECHANISMS attribute |
| 77 |
on the key objects. |
| 78 |
.LP |
| 79 |
.RS |
| 80 |
.nf |
| 81 |
slots.mechanisms = ALL |
| 82 |
.fi |
| 83 |
.RE |
| 84 |
.LP |
| 85 |
.SH LIBRARY.RESET_ON_FORK |
| 86 |
If set to true, the library will reset the state on fork. |
| 87 |
Default is false. |
| 88 |
.LP |
| 89 |
.RS |
| 90 |
.nf |
| 91 |
library.reset_on_fork = true |
| 92 |
.fi |
| 93 |
.RE |
| 94 |
.LP |
| 95 |
.SH ENVIRONMENT |
| 96 |
.TP |
| 97 |
SOFTHSM2_CONF |
| 98 |
When defined, the value will be used as path to the configuration file. |
| 99 |
.SH FILES |
| 100 |
.TP |
| 101 |
.I ~/.config/softhsm2/softhsm2.conf |
| 102 |
default user-specific location of the SoftHSM configuration file; if it exists it will override the system wide configuration |
| 103 |
.TP |
| 104 |
.I @default_softhsm2_conf@ |
| 105 |
default system-wide location of the SoftHSM configuration file |
| 106 |
.TP |
| 107 |
.I @[email protected] |
| 108 |
an example of a SoftHSM configuration file |
| 109 |
.SH AUTHOR |
| 110 |
Written by Rickard Bellgrim, Francis Dupont, René Post, and Roland van Rijswijk. |
| 111 |
.SH "SEE ALSO" |
| 112 |
.IR softhsm2-keyconv (1), |
| 113 |
.IR softhsm2-migrate (1), |
| 114 |
.IR softhsm2-util (1) |