Debian Codegraph @

upstream/debian-trixie/man1/systemd-measure.1

raw
1 '\" t
2 .TH "SYSTEMD\-MEASURE" "1" "" "systemd 257.13" "systemd-measure"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 .ie \n(.g .ds Aq \(aq
11 .el .ds Aq '
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
16 .nh
17 .\" disable justification (adjust text to left margin only)
18 .ad l
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
22 .SH "NAME"
23 systemd-measure \- Pre\-calculate and sign expected TPM2 PCR 11 values for booted unified kernel images
24 .SH "SYNOPSIS"
25 .HP \w'\fB/usr/lib/systemd/systemd\-measure\fR\ 'u
26 \fB/usr/lib/systemd/systemd\-measure\fR [OPTIONS...]
27 .SH "DESCRIPTION"
28 .PP
29 Note: this command is experimental for now\&. While it is likely to become a regular component of systemd, it might still change in behaviour and interface\&.
30 .PP
31 \fBsystemd\-measure\fR
32 is a tool that may be used to pre\-calculate and sign the expected TPM2 PCR 11 values that should be seen when a Linux
33 \m[blue]\fBUnified Kernel Image (UKI)\fR\m[]\&\s-2\u[1]\d\s+2
34 based on
35 \fBsystemd-stub\fR(7)
36 is booted up\&. It accepts paths to the ELF kernel image file, initrd image file, devicetree file, kernel command line file,
37 \fBos-release\fR(5)
38 file, boot splash file, and TPM2 PCR PEM public key file that make up the unified kernel image, and determines the PCR values expected to be in place after booting the image\&. Calculation starts with a zero\-initialized PCR 11, and is executed in a fashion compatible with what
39 systemd\-stub
40 does at boot\&. The result may optionally be signed cryptographically, to allow TPM2 policies that can only be unlocked if a certain set of kernels is booted, for which such a PCR signature can be provided\&.
41 .PP
42 It usually does not make sense to call this tool directly when constructing a UKI\&. Instead,
43 \fBukify\fR(1)
44 should be used; it will invoke
45 \fBsystemd\-measure\fR
46 and take care of embedding the resulting measurements into the UKI\&.
47 .SH "COMMANDS"
48 .PP
49 The following commands are understood:
50 .PP
51 \fBstatus\fR
52 .RS 4
53 This is the default command if none is specified\&. This queries the local system\*(Aqs TPM2 PCR 11 values and displays them\&. The data is written in a similar format as the
54 \fBcalculate\fR
55 command below, and may be used to quickly compare expectation with reality\&.
56 .sp
57 Added in version 252\&.
58 .RE
59 .PP
60 \fBcalculate\fR
61 .RS 4
62 Pre\-calculate the expected values seen in PCR register 11 after boot\-up of a unified kernel image consisting of the components specified with
63 \fB\-\-linux=\fR,
64 \fB\-\-osrel=\fR,
65 \fB\-\-cmdline=\fR,
66 \fB\-\-initrd=\fR,
67 \fB\-\-ucode=\fR,
68 \fB\-\-splash=\fR,
69 \fB\-\-dtb=\fR,
70 \fB\-\-uname=\fR,
71 \fB\-\-sbat=\fR,
72 \fB\-\-pcrpkey=\fR,
73 \fB\-\-profile=\fR,
74 \fB\-\-dtbauto=\fR,
75 \fB\-\-hwids=\fR, see below\&. Only
76 \fB\-\-linux=\fR
77 is mandatory\&. (Alternatively, specify
78 \fB\-\-current\fR
79 to use the current values of PCR register 11 instead\&.)
80 .sp
81 Added in version 252\&.
82 .RE
83 .PP
84 \fBsign\fR
85 .RS 4
86 As with the
87 \fBcalculate\fR
88 command, pre\-calculate the expected value seen in TPM2 PCR register 11 after boot\-up of a unified kernel image\&. Then, cryptographically sign the resulting values with the private/public key pair (RSA) configured via
89 \fB\-\-private\-key=\fR
90 and
91 \fB\-\-public\-key=\fR\&. This will write a JSON object to standard output that contains signatures for all specified PCR banks (see the
92 \fB\-\-bank=\fR
93 option below), which may be used to unlock encrypted credentials (see
94 \fBsystemd-creds\fR(1)) or LUKS volumes (see
95 \[email protected]\fR(8))\&. This allows binding secrets to a set of kernels for which such PCR 11 signatures can be provided\&.
96 .sp
97 Note that a TPM2 device must be available for this signing to take place, even though the result is not tied to any TPM2 device or its state\&.
98 .sp
99 Added in version 252\&.
100 .RE
101 .SH "OPTIONS"
102 .PP
103 The following options are understood:
104 .PP
105 \fB\-\-linux=\fR\fB\fIPATH\fR\fR, \fB\-\-osrel=\fR\fB\fIPATH\fR\fR, \fB\-\-cmdline=\fR\fB\fIPATH\fR\fR, \fB\-\-initrd=\fR\fB\fIPATH\fR\fR, \fB\-\-ucode=\fR\fB\fIPATH\fR\fR, \fB\-\-splash=\fR\fB\fIPATH\fR\fR, \fB\-\-dtb=\fR\fB\fIPATH\fR\fR, \fB\-\-uname=\fR\fB\fIPATH\fR\fR, \fB\-\-sbat=\fR\fB\fIPATH\fR\fR, \fB\-\-pcrpkey=\fR\fB\fIPATH\fR\fR, \fB\-\-profile=\fR\fB\fIPATH\fR\fR, \fB\-\-dtbauto=\fR\fB\fIPATH\fR\fR, \fB\-\-hwids=\fR\fB\fIPATH\fR\fR
106 .RS 4
107 When used with the
108 \fBcalculate\fR
109 or
110 \fBsign\fR
111 verb, configures the files to read the unified kernel image components from\&. Each option corresponds with the equally named section in the unified kernel PE file\&. The
112 \fB\-\-linux=\fR
113 switch expects the path to the ELF kernel file that the unified PE kernel will wrap\&. All switches except
114 \fB\-\-linux=\fR
115 are optional\&. Each option may be used at most once\&.
116 .sp
117 Added in version 252\&.
118 .sp
119 With the exception of
120 \fB\-\-profile=\fR,
121 \fB\-\-dtbauto=\fR
122 and
123 \fB\-\-hwids=\fR, which have been added in version 257\&.
124 .RE
125 .PP
126 \fB\-\-current\fR
127 .RS 4
128 When used with the
129 \fBcalculate\fR
130 or
131 \fBsign\fR
132 verb, takes the PCR 11 values currently in effect for the system (which should typically reflect the hashes of the currently booted kernel)\&. This can be used in place of
133 \fB\-\-linux=\fR
134 and the other switches listed above\&.
135 .sp
136 Added in version 252\&.
137 .RE
138 .PP
139 \fB\-\-bank=\fR\fB\fIDIGEST\fR\fR
140 .RS 4
141 Controls the PCR banks to pre\-calculate the PCR values for \(en in case
142 \fBcalculate\fR
143 or
144 \fBsign\fR
145 is invoked \(en, or the banks to show in the
146 \fBstatus\fR
147 output\&. May be used more then once to specify multiple banks\&. If not specified, defaults to the four banks
148 "sha1",
149 "sha256",
150 "sha384",
151 "sha512"\&.
152 .sp
153 Added in version 252\&.
154 .RE
155 .PP
156 \fB\-\-private\-key=\fR\fB\fIPATH\fR\fR, \fB\-\-public\-key=\fR\fB\fIPATH\fR\fR, \fB\-\-certificate=\fR\fB\fIPATH\fR\fR
157 .RS 4
158 These switches take paths to a pair of PEM encoded RSA key files, for use with the
159 \fBsign\fR
160 command\&.
161 .sp
162 Note the difference between the
163 \fB\-\-pcrpkey=\fR
164 and
165 \fB\-\-public\-key=\fR
166 switches\&. The former selects the data to include in the
167 "\&.pcrpkey"
168 PE section of the unified kernel image, the latter picks the public key of the key pair used to sign the resulting PCR 11 values\&. The former is the key that the booted system will likely use to lock disk and credential encryption to, the latter is the key used for unlocking such resources again\&. Hence, typically the same PEM key should be supplied in both cases\&.
169 .sp
170 If the
171 \fB\-\-public\-key=\fR
172 is not specified but
173 \fB\-\-private\-key=\fR
174 is specified, the public key is automatically derived from the private key\&.
175 .sp
176 \fB\-\-certificate=\fR
177 can be used to specify an X\&.509 certificate as an alternative to
178 \fB\-\-public\-key=\fR
179 since v256\&.
180 .sp
181 Added in version 252\&.
182 .RE
183 .PP
184 \fB\-\-private\-key=\fR\fB\fIPATH/URI\fR\fR, \fB\-\-private\-key\-source=\fR\fB\fITYPE\fR\fR\fB[:\fR\fB\fINAME\fR\fR\fB]\fR, \fB\-\-certificate=\fR\fB\fIPATH/URI\fR\fR, \fB\-\-certificate\-source=\fR\fB\fITYPE\fR\fR\fB[:\fR\fB\fINAME\fR\fR\fB]\fR
185 .RS 4
186 As an alternative to
187 \fB\-\-public\-key=\fR
188 for the
189 \fBsign\fR
190 command, these switches can be used to sign with an hardware token\&. The private key option can take a path or a URI that will be passed to the OpenSSL engine or provider, as specified by
191 \fB\-\-private\-key\-source=\fR
192 as a type:name tuple, such as engine:pkcs11\&. The specified OpenSSL signing engine or provider will be used to sign\&.
193 .sp
194 The
195 \fB\-\-certificate=\fR
196 option also takes a path or a URI that will be passed to the OpenSSL provider, as specified by
197 \fB\-\-certificate\-source=\fR
198 as a
199 "type:name"
200 tuple, such as
201 "provider:pkcs11"\&. Note that unlike
202 \fB\-\-private\-key\-source=\fR
203 this option only supports providers and not engines\&.
204 .sp
205 Added in version 256\&.
206 .RE
207 .PP
208 \fB\-\-tpm2\-device=\fR\fB\fIPATH\fR\fR
209 .RS 4
210 Controls which TPM2 device to use\&. Expects a device node path referring to the TPM2 chip (e\&.g\&.
211 /dev/tpmrm0)\&. Alternatively the special value
212 "auto"
213 may be specified, in order to automatically determine the device node of a suitable TPM2 device (of which there must be exactly one)\&. The special value
214 "list"
215 may be used to enumerate all suitable TPM2 devices currently discovered\&.
216 .sp
217 Added in version 252\&.
218 .RE
219 .PP
220 \fB\-\-phase=\fR\fB\fIPHASE\fR\fR
221 .RS 4
222 Controls which boot phases to calculate expected PCR 11 values for\&. This takes a series of colon\-separated strings that encode boot "paths" for entering a specific phase of the boot process\&. Each of the specified strings is measured by the
223 systemd\-pcrphase\-initrd\&.service,
224 systemd\-pcrphase\-sysinit\&.service, and
225 \fBsystemd-pcrphase.service\fR(8)
226 into PCR 11 during different milestones of the boot process\&. This switch may be specified multiple times to calculate PCR values for multiple boot phases at once\&. If not used defaults to
227 "enter\-initrd",
228 "enter\-initrd:leave\-initrd",
229 "enter\-initrd:leave\-initrd:sysinit",
230 "enter\-initrd:leave\-initrd:sysinit:ready", i\&.e\&. calculates expected PCR values for the boot phase in the initrd, during early boot, during later boot, and during system runtime, but excluding the phases before the initrd or when shutting down\&. This setting is honoured both by
231 \fBcalculate\fR
232 and
233 \fBsign\fR\&. When used with the latter it is particularly useful for generating PCR signatures that can only be used for unlocking resources during specific parts of the boot process\&.
234 .sp
235 For further details about PCR boot phases, see
236 \fBsystemd-pcrphase.service\fR(8)\&.
237 .sp
238 Added in version 252\&.
239 .RE
240 .PP
241 \fB\-\-append=\fR\fB\fIPATH\fR\fR
242 .RS 4
243 When generating a PCR JSON signature (via the
244 \fBsign\fR
245 command), combine it with a previously generated PCR JSON signature, and output it as one\&. The specified path must refer to a regular file that contains a valid JSON PCR signature object\&. The specified file is not modified\&. It will be read first, then the newly generated signature appended to it, and the resulting object is written to standard output\&. Use this to generate a single JSON object consisting from signatures made with a number of signing keys (for example, to have one key per boot phase)\&. The command will suppress duplicates: if a specific signature is already included in a JSON signature object it is not added a second time\&.
246 .sp
247 Added in version 253\&.
248 .RE
249 .PP
250 \fB\-\-json=\fR\fB\fIMODE\fR\fR
251 .RS 4
252 Shows output formatted as JSON\&. Expects one of
253 "short"
254 (for the shortest possible output without any redundant whitespace or line breaks),
255 "pretty"
256 (for a pretty version of the same, with indentation and line breaks) or
257 "off"
258 (to turn off JSON output, the default)\&.
259 .RE
260 .PP
261 \fB\-\-no\-pager\fR
262 .RS 4
263 Do not pipe output into a pager\&.
264 .RE
265 .PP
266 \fB\-h\fR, \fB\-\-help\fR
267 .RS 4
268 Print a short help text and exit\&.
269 .RE
270 .PP
271 \fB\-\-version\fR
272 .RS 4
273 Print a short version string and exit\&.
274 .RE
275 .SH "EXAMPLES"
276 .PP
277 \fBExample\ \&1.\ \&Generate a unified kernel image, and calculate the expected TPM PCR 11 value\fR
278 .sp
279 .if n \{\
280 .RS 4
281 .\}
282 .nf
283 $ ukify build \e
284 \-\-linux=vmlinux \e
285 \-\-initrd=initrd\&.cpio \e
286 \-\-os\-release=@os\-release\&.txt \e
287 \-\-cmdline=@cmdline\&.txt \e
288 \-\-splash=splash\&.bmp \e
289 \-\-devicetree=devicetree\&.dtb \e
290 \-\-measure \e
291 \-\-output=vmlinux\&.efi
292 11:sha1=d775a7b4482450ac77e03ee19bda90bd792d6ec7
293 11:sha256=bc6170f9ce28eb051ab465cd62be8cf63985276766cf9faf527ffefb66f45651
294 11:sha384=1cf67dff4757e61e5\&.\&.\&.7f49ad720be02fd07263e1f93061243aec599d1ee4b4
295 11:sha512=8e79acd3ddbbc8282\&.\&.\&.0c3e8ec0c714821032038f525f744960bcd082d937da
296 .fi
297 .if n \{\
298 .RE
299 .\}
300 .PP
301 \fBukify\fR(1)
302 internally calls
303 \fBsystemd\-measure\fR\&. The output with hashes is from
304 \fBsystemd\-measure\fR\&.
305 .PP
306 \fBExample\ \&2.\ \&Generate a private/public key pair, a unified kernel image, and a TPM PCR 11 signature for it, and embed the signature and the public key in the image\fR
307 .sp
308 .if n \{\
309 .RS 4
310 .\}
311 .nf
312 $ openssl genpkey \-algorithm RSA \-pkeyopt rsa_keygen_bits:2048 \-out tpm2\-pcr\-private\-key\&.pem
313 \&.\&.+\&.+++++++++\&.\&.\&.\&.\&.\&.+\&.\&.\&.\&.\&.\&.\&.\&.\&.+\&.\&.\&.\&.\&.\&.+\&.\&.\&.\&.\&.\&.\&.+\&.\&.\&.\&.+\&.\&.\&.\&.\&.+\&.+\&.\&.\&.+\&.\&.\&.\&.\&.\&.\&.\&.\&.\&.
314 $ openssl rsa \-pubout \-in tpm2\-pcr\-private\-key\&.pem \-out tpm2\-pcr\-public\-key\&.pem
315 $ systemd\-measure sign \e
316 \-\-linux=vmlinux \e
317 \-\-osrel=os\-release\&.txt \e
318 \-\-cmdline=cmdline\&.txt \e
319 \-\-initrd=initrd\&.cpio \e
320 \-\-splash=splash\&.bmp \e
321 \-\-dtb=devicetree\&.dtb \e
322 \-\-pcrpkey=tpm2\-pcr\-public\-key\&.pem \e
323 \-\-bank=sha1 \e
324 \-\-bank=sha256 \e
325 \-\-private\-key=tpm2\-pcr\-private\-key\&.pem \e
326 \-\-public\-key=tpm2\-pcr\-public\-key\&.pem >tpm2\-pcr\-signature\&.json
327 $ ukify build \e
328 \-\-linux=vmlinux \e
329 \-\-initrd=initrd\&.cpio \e
330 \-\-os\-release=@os\-release\&.txt \e
331 \-\-cmdline=@cmdline\&.txt \e
332 \-\-splash=splash\&.bmp \e
333 \-\-devicetree=devicetree\&.dtb \e
334 \-\-pcr\-private\-key=tpm2\-pcr\-private\-key\&.pem \e
335 \-\-pcr\-public\-key=tpm2\-pcr\-public\-key\&.pem \e
336 \-\-pcr\-banks=sha1,sha256 \e
337 \-\-output=vmlinuz\&.efi
338 .fi
339 .if n \{\
340 .RE
341 .\}
342 .PP
343 Later on, enroll the signed PCR policy on a LUKS volume:
344 .sp
345 .if n \{\
346 .RS 4
347 .\}
348 .nf
349 # systemd\-cryptenroll \-\-tpm2\-device=auto \e
350 \-\-tpm2\-public\-key=tpm2\-pcr\-public\-key\&.pem \e
351 \-\-tpm2\-signature=tpm2\-pcr\-signature\&.json \e
352 /dev/sda5
353 .fi
354 .if n \{\
355 .RE
356 .\}
357 .PP
358 And then unlock the device with the signature:
359 .sp
360 .if n \{\
361 .RS 4
362 .\}
363 .nf
364 # systemd\-cryptsetup attach \e
365 volume5 /dev/sda5 \- \e
366 tpm2\-device=auto,tpm2\-signature=/path/to/tpm2\-pcr\-signature\&.json
367 .fi
368 .if n \{\
369 .RE
370 .\}
371 .PP
372 Note that when the generated unified kernel image
373 vmlinux\&.efi
374 is booted, the signature and public key files will be placed at locations
375 \fBsystemd\-cryptenroll\fR
376 and
377 \fBsystemd\-cryptsetup\fR
378 will look for anyway, and thus these paths do not actually need to be specified\&.
379 .PP
380 \fBExample\ \&3.\ \&Introduce a second public key, signing the same kernel PCR measurements, but only for the initrd boot phase\fR
381 .PP
382 This example extends the previous one, but we now introduce a second signing key that is only used to sign PCR policies restricted to the initrd boot phase\&. This can be used to lock down root volumes in a way that they can only be unlocked before the transition to the host system\&. Thus we have two classes of secrets or credentials: one that can be unlocked during the entire runtime, and the other that can only be used in the initrd\&.
383 .sp
384 .if n \{\
385 .RS 4
386 .\}
387 .nf
388 $ openssl genpkey \-algorithm RSA \-pkeyopt rsa_keygen_bits:2048 \-out tpm2\-pcr\-private\-key\&.pem
389 \&.+\&.\&.\&.\&.\&.\&.\&.\&.+\&.+\&.\&.\&.\&.\&.\&.\&.\&.+\&.\&.\&.\&.\&.\&.\&.+\&.\&.\&.+\&.\&.\&.+\&.\&.\&.\&.\&.\&.\&.\&.+\&.\&.\&.\&.+\&.\&.\&.\&.\&.\&.+\&.\&.+\&.\&.\&.\&.\&.\&.\&.\&.\&.\&.
390 $ openssl rsa \-pubout \-in tpm2\-pcr\-private\-key\&.pem \-out tpm2\-pcr\-public\-key\&.pem
391 $ openssl genpkey \-algorithm RSA \-pkeyopt rsa_keygen_bits:2048 \-out tpm2\-pcr\-private\-key\-initrd\&.pem
392 \&.\&.+\&.\&.\&.\&.\&.\&.\&.++\&.\&.\&.\&.\&.\&.\&.\&.+\&.\&.\&.\&.\&.\&.\&.\&.+\&.\&.\&.\&.\&.\&.+\&.\&.\&.\&.\&.\&.\&.\&.+\&.\&.\&.\&.+\&.\&.\&.\&.\&.+\&.+\&.\&.+\&.\&.\&.\&.\&.\&.\&.\&.\&.\&.
393 $ openssl rsa \-pubout \-in tpm2\-pcr\-private\-key\-initrd\&.pem \-out tpm2\-pcr\-public\-key\-initrd\&.pem
394 $ ukify build \e
395 \-\-linux=vmlinux\-1\&.2\&.3 \e
396 \-\-initrd=initrd\&.cpio \e
397 \-\-os\-release=@os\-release\&.txt \e
398 \-\-cmdline=@cmdline\&.txt \e
399 \-\-splash=splash\&.bmp \e
400 \-\-devicetree=devicetree\&.dtb \e
401 \-\-pcr\-private\-key=tpm2\-pcr\-private\-key\&.pem \e
402 \-\-pcr\-public\-key=tpm2\-pcr\-public\-key\&.pem \e
403 \-\-phases=enter\-initrd,enter\-initrd:leave\-initrd,enter\-initrd:leave\-initrd:sysinit,enter\-initrd:leave\-initrd:sysinit:ready \e
404 \-\-pcr\-banks=sha1,sha256 \e
405 \-\-pcr\-private\-key=tpm2\-pcr\-private\-key\-initrd\&.pem \e
406 \-\-pcr\-public\-key=tpm2\-pcr\-public\-key\-initrd\&.pem \e
407 \-\-phases=enter\-initrd \e
408 \-\-uname=1\&.2\&.3 \e
409 \-\-output=vmlinux\-1\&.2\&.3\&.efi
410 + /usr/lib/systemd/systemd\-measure sign \-\-linux=vmlinux\-1\&.2\&.3 \e
411 \-\-osrel=os\-release\&.txt \-\-cmdline=cmdline\&.txt \-\-dtb=devicetree\&.dtb \e
412 \-\-splash=splash\&.bmp \-\-initrd=initrd\&.cpio \-\-bank=sha1 \-\-bank=sha256 \e
413 \-\-private\-key=tpm2\-pcr\-private\-key\&.pem \-\-public\-key=tpm2\-pcr\-public\-key\&.pem \e
414 \-\-phase=enter\-initrd \-\-phase=enter\-initrd:leave\-initrd \e
415 \-\-phase=enter\-initrd:leave\-initrd:sysinit \e
416 \-\-phase=enter\-initrd:leave\-initrd:sysinit:ready
417 + /usr/lib/systemd/systemd\-measure sign \-\-linux=vmlinux\-1\&.2\&.3 \e
418 \-\-osrel=os\-release\&.txt \-\-cmdline=cmdline\&.txt \-\-dtb=devicetree\&.dtb \e
419 \-\-splash=splash\&.bmp \-\-initrd=initrd\&.cpio \-\-bank=sha1 \-\-bank=sha256 \e
420 \-\-private\-key=tpm2\-pcr\-private\-key\-initrd\&.pem \e
421 \-\-public\-key=tpm2\-pcr\-public\-key\-initrd\&.pem \e
422 \-\-phase=enter\-initrd
423 Wrote unsigned vmlinux\-1\&.2\&.3\&.efi
424 .fi
425 .if n \{\
426 .RE
427 .\}
428 .PP
429 \fBukify\fR
430 prints out both invocations of
431 \fBsystemd\-measure\fR
432 as informative output (the lines starting with
433 "+"); this allows us to see how
434 \fBsystemd\-measure\fR
435 is called\&. It then merges the output of both invocations into the
436 "\&.pcrsig"
437 section\&.
438 \fBsystemd\-measure\fR
439 may also do this merge itself using the
440 \fB\-\-append=\fR
441 option\&.
442 .PP
443 Note that in this example the
444 "\&.pcrpkey"
445 PE section contains the key specified by the first
446 \fB\-\-pcr\-private\-key=\fR
447 option, covering all boot phases\&. The
448 "\&.pcrpkey"
449 section is used in the default policies of
450 \fBsystemd\-cryptenroll\fR
451 and
452 \fBsystemd\-creds\fR\&. To use the stricter policy bound to
453 tpm2\-pcr\-public\-key\-initrd\&.pem, specify
454 \fB\-\-tpm2\-public\-key=\fR
455 on the command line of those tools\&.
456 .SH "EXIT STATUS"
457 .PP
458 On success, 0 is returned, a non\-zero failure code otherwise\&.
459 .SH "SEE ALSO"
460 .PP
461 \fBsystemd\fR(1), \fBsystemd-stub\fR(7), \fBukify\fR(1), \fBsystemd-creds\fR(1), \[email protected]\fR(8), \fBsystemd-pcrphase.service\fR(8)
462 .SH "NOTES"
463 .IP " 1." 4
464 Unified Kernel Image (UKI)
465 .RS 4
466 \%https://uapi-group.org/specifications/specs/unified_kernel_image/
467 .RE