swtpm_localca(8) | swtpm_localca(8) |
swtpm_localca - Local CA to create EK and platform certs for swtpm
swtpm_localca [OPTIONS]
swtpm_localca is a tool to create TPM Endorsement Key (EK) and platform certificates on the host. It uses the swtpm_cert program to create the certificates.
The program will typically be invoked by the swtpm_setup program that uses the /etc/swtpm_setup.conf configuration file where a variable needs to be set that points to this program. It implements command line options that the swtpm_setup program uses to provide the necessary parameters to it.
swtpm_localca will automatically try to create the signing key and certificate if the configuration points to a missing signing key. Since this certificate must be signed by a CA, a root certificate authority will also be created and will sign this certificate. The root CA's private key and certificate will be located in the same directory as the signing key and have the names swtpm-localca-rootca-privkey.pem and swtpm-localca-rootca-cert.pem respectively. The environment variable SWTPM_ROOTCA_PASSWORD can be set for the password of the root CA's private key.
Note: Due to limitations of 'certtool', the possible passwords used for securing the root CA's private key and the intermedia CA's private key have to be passed over the command line and therefore will be visible to others on the system. If you are concerned about this, you should create the CAs elsewhere and copy them onto the target system.
The following options are supported:
In case ECC (elliptic curve crypography) keys are used, the parameter must have the format --ek x=<hex digits>,y=<hex digits>,id=<curve id>. The id=<curve id> part is optional and only necessary for ECC curves other than secp256r1.
swtpm-localca.conf, swtpm-localca.options, swtpm_setup, swtpm_setup.conf
Report bugs to Stefan Berger <stefanb@linux.vnet.ibm.com>
2023-05-18 | swtpm |