Debian Codegraph @

man/man5/swtpm-localca.conf.pod

raw
1 =head1 NAME
2
3 swtpm-localca.conf - Configuration file for swtpm_localca
4
5 =head1 DESCRIPTION
6
7 The file I</etc/swtpm-localca.conf> contains configuration variables
8 for the I<swtpm_localca> program.
9
10 Entries may contain environment variables that will be resolved. All
11 environment variables must be formatted like this: '${varname}'.
12
13 Users may write their own configuration into
14 I<${XDG_CONFIG_HOME}/swtpm-localca.conf> or if XDG_CONFIG_HOME
15 is not set it may be in I<${HOME}/.config/swtpm-localca.conf>.
16
17 The following configuration variables are supported:
18
19 =over 4
20
21 =item B<statedir>
22
23 The name of a directory where to store data into. A lock will be created
24 in this directory.
25
26 =item B<signinkey>
27
28 The file containing the key used for signing the certificates. Provide
29 a key in PEM format or a pkcs11 URI.
30
31 =item B<signingkey_password>
32
33 The password to use for the signing key.
34
35 =item B<issuercert>
36
37 The file containing the certificate for this CA. Provide a certificate
38 in PEM format.
39
40 =item B<certserial>
41
42 The name of file containing the serial number for the next certificate.
43
44 The serial number must be a decimal number and must be representable
45 with 20 bytes or less. Once 21 bytes are used a new random serial
46 number with 20 decimal digits will be created.
47
48 =item B<TSS_TCSD_HOSTNAME>
49
50 This variable can be set to the host where B<tcsd> is running on in case
51 the signing key is a GnuTLS TPM 1.2 key. By default I<localhost> will be
52 used.
53
54 =item B<TSS_TCSD_PORT>
55
56 This variable can be set to the port on which B<tcsd> is listening for
57 connections. By default port I<30003> will be used.
58
59 =item B<env:<environment variable name>=<value>>
60
61 Environment variables, that are needed by pkcs11 modules, can be set using
62 this format. An example for such an environment variable may look like this:
63
64 env:MY_MODULE_PKCS11_CONFIG = /tmp/mymodule-pkcs11.conf
65
66 The line must not contain any trailing spaces.
67
68 =back
69
70 =head1 EXAMPLE
71
72 An example I<swtpm-localca.conf> file may look as follows:
73
74 statedir = /var/lib/swtpm_localca
75 signingkey = /var/lib/swtpm_localca/signkey.pem
76 issuercert = /var/lib/swtpm_localca/issuercert.pem
77 certserial = /var/lib/swtpm_localca/certserial
78
79 With a PKCS11 URI it may look like this:
80
81 statedir = /var/lib/swtpm-localca
82 signingkey = pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=891b99c169e41301;token=mylabel;id=%00;object=mykey;type=public
83 issuercert = /var/lib/swtpm-localca/swtpm-localca-tpmca-cert.pem
84 certserial = /var/lib/swtpm-localca/certserial
85 SWTPM_PKCS11_PIN = 1234
86
87 =head1 SEE ALSO
88
89 B<swtpm_localca>
90
91 =head1 REPORTING BUGS
92
93 Report bugs to Stefan Berger <[email protected]>