blob: 5291a0987888da2d706f65675b20eb35f9441414 [file] [log] [blame]
NingSun0c89b3c2018-02-08 08:34:03 -08001.TH softhsm2.conf 5 "30 October 2014" "SoftHSM"
2.SH NAME
3softhsm2.conf \- SoftHSM configuration file
4.SH SYNOPSIS
5.B softhsm2.conf
6.SH DESCRIPTION
7This is the configuration file for SoftHSM. It can be found on a
8default location, but can also be relocated by using the
9environment variable. Any configuration must be done according
10to the file format found in this document.
11.SH FILE FORMAT
12Each configuration option is a pair of name and value separated by
13a 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
21It is also possible to add comments in the file by using the hash sign.
22Anything after the hash sign will be ignored.
23.LP
24.RS
25.nf
26# A comment
27.RE
28.LP
29Any empty lines or lines that does not have the correct format will be ignored.
30.SH DIRECTORIES.TOKENDIR
31The location where SoftHSM can store the tokens.
32.LP
33.RS
34.nf
35directories.tokendir = @softhsmtokendir@
36.fi
37.RE
38.LP
39.SH OBJECTSTORE.BACKEND
40The backend to use by SoftHSM to store token objects. Either "file" or "db" is supported.
41In 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
45objectstore.backend = file
46.fi
47.RE
48.LP
49.SH LOG.LEVEL
50The log level which can be set to ERROR, WARNING, INFO or DEBUG.
51.LP
52.RS
53.nf
54log.level = INFO
55.fi
56.RE
57.LP
58.SH SLOTS.REMOVABLE
59If set to true CKF_REMOVABLE_DEVICE is set in the flags returned by C_GetSlotInfo. Default is false.
60.LP
61.RS
62.nf
63slots.removable = true
64.fi
65.RE
66.LP
67.SH ENVIRONMENT
68.TP
69SOFTHSM2_CONF
70When defined, the value will be used as path to the configuration file.
71.SH FILES
72.TP
73.I ~/.config/softhsm2/softhsm2.conf
74default user-specific location of the SoftHSM configuration file; if it exists it will override the system wide configuration
75.TP
76.I @default_softhsm2_conf@
77default system-wide location of the SoftHSM configuration file
78.TP
79.I @default_softhsm2_conf@.sample
80an example of a SoftHSM configuration file
81.SH AUTHOR
82Written by Rickard Bellgrim, Francis Dupont, René Post, and Roland van Rijswijk.
83.SH "SEE ALSO"
84.IR softhsm2-keyconv (1),
85.IR softhsm2-migrate (1),
86.IR softhsm2-util (1)