swtpm-localca.conf(8)
π swtpm-localca.conf(8) β bestie, let's talk config files π
okay so this is the manual page for swtpm-localca.conf from the swtpm manual, section 8. yes, it's a configuration file manpage, and yes, it's lowkey the most useful little gremlin in your CA setup. let's go π«Ά
β¨ NAME β¨
swtpm-localca.conf β the configuration file for swtpm_localca π
πΈ DESCRIPTION πΈ
so the file /etc/swtpm-localca.conf is where you keep the configuration variables for the swtpm_localca program. that's it, that's the whole vibe. it's giving "settings drawer" energy π
Entries may contain environment variables that will be resolved. and bestie, there's a format, okay, they can't just be any old thing β all environment variables must be formatted like this: ${varname}. no cap.
Users may write their own configuration into ${XDG_CONFIG_HOME}/swtpm-localca.conf or, if XDG_CONFIG_HOME is not set, it may be in ${HOME}/.config/swtpm-localca.conf. choose your own adventure, queen π
The following configuration variables are supported:
- statedir β the name of a directory where to store data into. a lock will be created in this directory. (yes, a lock, it's protecting its stuff, iconic behavior π)
- signinkey β the file containing the key used for signing the certificates. provide a key in PEM format or a
pkcs11URI. βοΈ - signingkey_password β the password to use for the signing key. π€«
- issuercert β the file containing the certificate for this CA. provide a certificate in PEM format. π
- certserial β the name of file containing the serial number for the next certificate. π’
- TSS_TCSD_HOSTNAME β this variable can be set to the host where
tcsdis running on in case the signing key is a GnuTLS TPM 1.2 key. by defaultlocalhostwill be used. π - TSS_TCSD_PORT β this variable can be set to the port on which
tcsdis listening for connections. by default port30003will be used. π env:<environment variable name=<value>>β environment variables that are needed bypkcs11modules can be set using this format. an example for such an environment variable may look like this:
env:MY_MODULE_PKCS11_CONFIG = /tmp/mymodule-pkcs11.conf
β οΈ bestie listen β the line must not contain any trailing spaces. not even one. the way this will absolutely ruin your day if you don't check. i'm serious π
π EXAMPLE π
an example swtpm-localca.conf file may look as follows:
statedir = /var/lib/swtpm_localca
signingkey = /var/lib/swtpm_localca/signkey.pem
issuercert = /var/lib/swtpm_localca/issuercert.pem
certserial = /var/lib/swtpm_localca/certserial
With a PKCS11 URI it may look like this:
statedir = /var/lib/swtpm-localca
signingkey = pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=891b99c169e41301;token=mylabel;id=%00;object=mykey;type=public
issuercert = /var/lib/swtpm-localca/swtpm-localca-tpmca-cert.pem
certserial = /var/lib/swtpm-localca/certserial
SWTPM_PKCS11_PIN = 1234
look at that second one. it's giving "i know what i'm doing" main character energy fr fr π₯
π¦ SEE ALSO π¦
swtpm_localca
π REPORTING BUGS π
Report bugs to Stefan Berger <stefanb@linux.vnet.ibm.com>. he's the one who knows π
and that's the whole page, bestie!! this was swtpm and the page was dated 2024-11-08. now go forth and configure your local CA, you absolute legend πβ¨π
π¦ where this page comes from
- ubuntu questing: swtpm-tools 0.7.3-0ubuntu8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms