tss2_pcrread.1 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. .\" Automatically generated by Pandoc 1.19.2.4
  2. .\"
  3. .TH "tss2_pcrread" "1" "APRIL 2019" "tpm2\-tools" "General Commands Manual"
  4. .hy
  5. .SH NAME
  6. .PP
  7. \f[B]tss2_pcrread\f[](1) \-
  8. .SH SYNOPSIS
  9. .PP
  10. \f[B]tss2_pcrread\f[] [\f[I]OPTIONS\f[]]
  11. .SH SEE ALSO
  12. .PP
  13. \f[B]fapi\-config(5)\f[] to adjust Fapi parameters like the used
  14. cryptographic profile and TCTI or directories for the Fapi metadata
  15. storages.
  16. .PP
  17. \f[B]fapi\-profile(5)\f[] to determine the cryptographic algorithms and
  18. parameters for all keys and operations of a specific TPM interaction
  19. like the name hash algorithm, the asymmetric signature algorithm, scheme
  20. and parameters and PCR bank selection.
  21. .SH DESCRIPTION
  22. .PP
  23. \f[B]tss2_pcrread\f[](1) \- This command provides a PCRs value and
  24. corresponding event log.
  25. The PCR bank to be used per PCR is defined in the cryptographic profile
  26. (cf., \f[B]fapi\-profile(5)\f[]).
  27. .SH OPTIONS
  28. .PP
  29. These are the available options:
  30. .IP \[bu] 2
  31. \f[B]\-o\f[], \f[B]\-\-pcrValue\f[]=\f[I]FILENAME\f[] or \f[I]\-\f[]
  32. (for stdout):
  33. .RS 2
  34. .PP
  35. Returns PCR digest.
  36. Optional parameter.
  37. .RE
  38. .IP \[bu] 2
  39. \f[B]\-x\f[], \f[B]\-\-pcrIndex\f[]=\f[I]INTEGER\f[]:
  40. .RS 2
  41. .PP
  42. Identifies the PCR to read.
  43. .RE
  44. .IP \[bu] 2
  45. \f[B]\-f\f[], \f[B]\-\-force\f[]:
  46. .RS 2
  47. .PP
  48. Force overwriting the output files.
  49. .RE
  50. .IP \[bu] 2
  51. \f[B]\-l\f[], \f[B]\-\-pcrLog\f[]=\f[I]FILENAME\f[] or \f[I]\-\f[] (for
  52. stdout):
  53. .RS 2
  54. .PP
  55. Returns the PCR log for that PCR.
  56. Optional parameter.
  57. .PP
  58. PCR event logs are a list (arbitrary length JSON array) of log entries
  59. with the following content.
  60. .IP
  61. .nf
  62. \f[C]
  63. \-\ recnum:\ Unique\ record\ number
  64. \-\ pcr:\ PCR\ index
  65. \-\ digest:\ The\ digests
  66. \-\ type:\ The\ type\ of\ event.\ At\ the\ moment\ the\ only\ possible\ value\ is:\ "LINUX_IMA"\ (legacy\ IMA)
  67. \-\ eventDigest:\ Digest\ of\ the\ event;\ e.g.\ the\ digest\ of\ the\ measured\ file
  68. \-\ eventName:\ Name\ of\ the\ event;\ e.g.\ the\ name\ of\ the\ measured\ file.
  69. \f[]
  70. .fi
  71. .RE
  72. .SH COMMON OPTIONS
  73. .PP
  74. This collection of options are common to all tss2 programs and provide
  75. information that many users may expect.
  76. .IP \[bu] 2
  77. \f[B]\-h\f[], \f[B]\-\-help [man|no\-man]\f[]: Display the tools
  78. manpage.
  79. By default, it attempts to invoke the manpager for the tool, however, on
  80. failure will output a short tool summary.
  81. This is the same behavior if the "man" option argument is specified,
  82. however if explicit "man" is requested, the tool will provide errors
  83. from man on stderr.
  84. If the "no\-man" option if specified, or the manpager fails, the short
  85. options will be output to stdout.
  86. .RS 2
  87. .PP
  88. To successfully use the manpages feature requires the manpages to be
  89. installed or on \f[I]MANPATH\f[], See \f[B]man\f[](1) for more details.
  90. .RE
  91. .IP \[bu] 2
  92. \f[B]\-v\f[], \f[B]\-\-version\f[]: Display version information for this
  93. tool, supported tctis and exit.
  94. .SH EXAMPLE
  95. .IP
  96. .nf
  97. \f[C]
  98. tss2_pcrread\ \-\-pcrIndex=16\ \-\-pcrValue=pcrValue.file\ \-\-pcrLog=pcrLog.file
  99. \f[]
  100. .fi
  101. .SH RETURNS
  102. .PP
  103. 0 on success or 1 on failure.
  104. .SH BUGS
  105. .PP
  106. Github Issues (https://github.com/tpm2-software/tpm2-tools/issues)
  107. .SH HELP
  108. .PP
  109. See the Mailing List (https://lists.01.org/mailman/listinfo/tpm2)