tss2_quote.1 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. .\" Automatically generated by Pandoc 1.19.2.4
  2. .\"
  3. .TH "tss2_quote" "1" "APRIL 2019" "tpm2\-tools" "General Commands Manual"
  4. .hy
  5. .SH NAME
  6. .PP
  7. \f[B]tss2_quote\f[](1) \-
  8. .SH SYNOPSIS
  9. .PP
  10. \f[B]tss2_quote\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_quote\f[](1) \- This command performs an attestation using the
  24. TPM.
  25. The PCR bank for each provided PCR index and signing scheme are set in
  26. the cryptographic profile (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]\-x\f[], \f[B]\-\-pcrList\f[]=\f[I]STRING\f[]:
  32. .RS 2
  33. .PP
  34. An array holding the PCR indices to quote against.
  35. .RE
  36. .IP \[bu] 2
  37. \f[B]\-Q\f[], \f[B]\-\-qualifyingData\f[]=\f[I]FILENAME\f[] or
  38. \f[I]\-\f[] (for stdin):
  39. .RS 2
  40. .PP
  41. A nonce provided by the caller to ensure freshness of the signature.
  42. Optional parameter.
  43. .RE
  44. .IP \[bu] 2
  45. \f[B]\-l\f[], \f[B]\-\-pcrLog\f[]=\f[I]FILENAME\f[] or \f[I]\-\f[] (for
  46. stdout):
  47. .RS 2
  48. .PP
  49. Returns the PCR log for the chosen PCR.
  50. Optional parameter.
  51. .PP
  52. PCR event logs are a list (arbitrary length JSON array) of log entries
  53. with the following content.
  54. .IP
  55. .nf
  56. \f[C]
  57. \-\ recnum:\ Unique\ record\ number
  58. \-\ pcr:\ PCR\ index
  59. \-\ digest:\ The\ digests
  60. \-\ type:\ The\ type\ of\ event.\ At\ the\ moment\ the\ only\ possible\ value\ is:\ "LINUX_IMA"\ (legacy\ IMA)
  61. \-\ eventDigest:\ Digest\ of\ the\ event;\ e.g.\ the\ digest\ of\ the\ measured\ file
  62. \-\ eventName:\ Name\ of\ the\ event;\ e.g.\ the\ name\ of\ the\ measured\ file.
  63. \f[]
  64. .fi
  65. .RE
  66. .IP \[bu] 2
  67. \f[B]\-f\f[], \f[B]\-\-force\f[]:
  68. .RS 2
  69. .PP
  70. Force overwriting the output file.
  71. .RE
  72. .IP \[bu] 2
  73. \f[B]\-p\f[], \f[B]\-\-keyPath\f[]=\f[I]STRING\f[]:
  74. .RS 2
  75. .PP
  76. Identifies the signing key.
  77. .RE
  78. .IP \[bu] 2
  79. \f[B]\-q\f[], \f[B]\-\-quoteInfo\f[]=\f[I]FILENAME\f[] or \f[I]\-\f[]
  80. (for stdout):
  81. .RS 2
  82. .PP
  83. Returns a JSON\-encoded structure holding the inputs to the quote
  84. operation.
  85. This includes the digest value and PCR values.
  86. .RE
  87. .IP \[bu] 2
  88. \f[B]\-o\f[], \f[B]\-\-signature\f[]=\f[I]FILENAME\f[] or \f[I]\-\f[]
  89. (for stdout):
  90. .RS 2
  91. .PP
  92. Returns the signature over the quoted material.
  93. .RE
  94. .IP \[bu] 2
  95. \f[B]\-c\f[], \f[B]\-\-certificate\f[]=\f[I]FILENAME\f[] or \f[I]\-\f[]
  96. (for stdout):
  97. .RS 2
  98. .PP
  99. The certificate associated with keyPath in PEM format.
  100. Optional parameter.
  101. .RE
  102. .SH COMMON OPTIONS
  103. .PP
  104. This collection of options are common to all tss2 programs and provide
  105. information that many users may expect.
  106. .IP \[bu] 2
  107. \f[B]\-h\f[], \f[B]\-\-help [man|no\-man]\f[]: Display the tools
  108. manpage.
  109. By default, it attempts to invoke the manpager for the tool, however, on
  110. failure will output a short tool summary.
  111. This is the same behavior if the "man" option argument is specified,
  112. however if explicit "man" is requested, the tool will provide errors
  113. from man on stderr.
  114. If the "no\-man" option if specified, or the manpager fails, the short
  115. options will be output to stdout.
  116. .RS 2
  117. .PP
  118. To successfully use the manpages feature requires the manpages to be
  119. installed or on \f[I]MANPATH\f[], See \f[B]man\f[](1) for more details.
  120. .RE
  121. .IP \[bu] 2
  122. \f[B]\-v\f[], \f[B]\-\-version\f[]: Display version information for this
  123. tool, supported tctis and exit.
  124. .SH EXAMPLE
  125. .IP
  126. .nf
  127. \f[C]
  128. tss2_quote\ \-\-keyPath=HS/SRK/quotekey\ \-\-pcrList="10,16"\ \-\-qualifyingData=qualifyingData.file\ \-\-signature=signature.file\ \-\-pcrLog=pcrLog.file\ \-\-certificate=certificate.file\ \-\-quoteInfo=quoteInfo.info
  129. \f[]
  130. .fi
  131. .SH RETURNS
  132. .PP
  133. 0 on success or 1 on failure.
  134. .SH BUGS
  135. .PP
  136. Github Issues (https://github.com/tpm2-software/tpm2-tools/issues)
  137. .SH HELP
  138. .PP
  139. See the Mailing List (https://lists.01.org/mailman/listinfo/tpm2)