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