tpm2-setup: also save the SRK to the file system in TPM2_PUBLIC format
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Nov 2023 21:24:33 +0000 (22:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 9 Nov 2023 11:47:24 +0000 (12:47 +0100)
commitfbe7db47f419d78fb96cc090a11497aef991cc27
tree945ab47f8d42e4e0482613ba8adecd8a384371a7
parentfadc7d8cd7bc6296955c8965237a0cceb3c9b5fa
tpm2-setup: also save the SRK to the file system in TPM2_PUBLIC format

We already save it in PEM format, also store it TPM2_PUBLIC format next
to it. This is useful for usage with systemd-cryptenroll's
--tpm2-device-key= switch.
man/systemd-tpm2-setup.service.xml
src/shared/tpm2-util.c
src/shared/tpm2-util.h
src/tpm2-setup/tpm2-setup.c