systemd-tpm2-setup.service(8) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | FILES | SEE ALSO | COLOPHON

SYSTEMD-....SERVICE(8) systemd-tpm2-setup.service SYSTEMD-....SERVICE(8)

NAME         top

       systemd-tpm2-setup.service, systemd-tpm2-setup-early.service,
       systemd-tpm2-setup - Set up the TPM2 Storage Root Key (SRK) at
       boot

SYNOPSIS         top

       systemd-tpm2-setup.service

       /usr/lib/systemd/systemd-tpm2-setup

DESCRIPTION         top

       systemd-tpm2-setup.service and systemd-tpm2-setup-early.service
       are services that generate the Storage Root Key (SRK) if it
       hasn't been generated yet, and stores it in the TPM.

       The services will store the public key of the SRK key pair in a
       PEM file in /run/systemd/tpm2-srk-public-key.pem and
       /var/lib/systemd/tpm2-srk-public-key.pem. They will also store it
       in TPM2B_PUBLIC format in
       /run/systemd/tpm2-srk-public-key.tpm2_public and
       /var/lib/systemd/tpm2-srk-public-key.tpm2b_public.

       systemd-tpm2-setup-early.service runs very early at boot
       (possibly in the initrd), and writes the SRK public key to
       /run/systemd/tpm2-srk-public-key.*  (as /var/ is generally not
       accessible this early yet), while systemd-tpm2-setup.service runs
       during a later boot phase and saves the public key to
       /var/lib/systemd/tpm2-srk-public-key.*.

FILES         top

       /run/systemd/tpm2-srk-public-key.pem,
       /run/systemd/tpm2-srk-public-key.tpm2b_public
           The SRK public key in PEM and TPM2B_PUBLIC format, written
           during early boot.

           Added in version 255.

       /var/lib/systemd/tpm2-srk-public-key.pem,
       /var/lib/systemd/tpm2-srk-public-key.tpm2_public
           The SRK public key in PEM and TPM2B_PUBLIC format, written
           during later boot (once /var/ is available).

           Added in version 255.

SEE ALSO         top

       systemd(1)

COLOPHON         top

       This page is part of the systemd (systemd system and service
       manager) project.  Information about the project can be found at
       ⟨http://www.freedesktop.org/wiki/Software/systemd⟩.  If you have
       a bug report for this manual page, see
       ⟨http://www.freedesktop.org/wiki/Software/systemd/#bugreports⟩.
       This page was obtained from the project's upstream Git repository
       ⟨https://github.com/systemd/systemd.git⟩ on 2024-06-14.  (At that
       time, the date of the most recent commit that was found in the
       repository was 2024-06-13.)  If you discover any rendering
       problems in this HTML version of the page, or you believe there
       is a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to
       [email protected]

systemd 257~devel                                 SYSTEMD-....SERVICE(8)

Pages that refer to this page: systemd-cryptenroll(1)systemd.directives(7)systemd.index(7)