1tss2_pcrread(1) General Commands Manual tss2_pcrread(1)
2
3
4
6 tss2_pcrread(1) -
7
9 tss2_pcrread [OPTIONS]
10
12 tss2_pcrread(1) - This command provides a PCRs value and corresponding
13 Event log. The PCR bank to be used per PCR is defined in the crypto‐
14 graphic profile.
15
17 These are the available options:
18
19 · -o, --pcrValue FILENAME or - (for stdout):
20
21 Returns PCR digest. Optional parameter.
22
23 · -x, --pcrIndex INTEGER:
24
25 Identifies the PCR to read.
26
27 · -f, --force:
28
29 Force overwriting the output files.
30
31 · -l, --pcrLog FILENAME or - (for stdout):
32
33 Returns the PCR log for that PCR. Optional parameter.
34
35 PCR event logs are a list (arbitrary length JSON array) of log en‐
36 tries with the following content.
37
38 - recnum: Unique record number
39 - pcr: PCR index
40 - digest: The digests
41 - type: The type of event. At the moment the only possible value is: "LINUX_IMA" (legacy IMA)
42 - eventDigest: Digest of the event; e.g. the digest of the measured file
43 - eventName: Name of the event; e.g. the name of the measured file.
44
46 This collection of options are common to all tss2 programs and provide
47 information that many users may expect.
48
49 · -h, --help [man|no-man]: Display the tools manpage. By default, it
50 attempts to invoke the manpager for the tool, however, on failure
51 will output a short tool summary. This is the same behavior if the
52 “man” option argument is specified, however if explicit “man” is re‐
53 quested, the tool will provide errors from man on stderr. If the
54 “no-man” option if specified, or the manpager fails, the short op‐
55 tions will be output to stdout.
56
57 To successfully use the manpages feature requires the manpages to be
58 installed or on MANPATH, See man(1) for more details.
59
60 · -v, --version: Display version information for this tool, supported
61 tctis and exit.
62
64 tss2_pcrread --pcrIndex 16 --pcrValue pcrValue.file --pcrLog pcrLog.file
65
67 0 on success or 1 on failure.
68
70 Github Issues (https://github.com/tpm2-software/tpm2-tools/issues)
71
73 See the Mailing List (https://lists.01.org/mailman/listinfo/tpm2)
74
75
76
77tpm2-tools APRIL 2019 tss2_pcrread(1)