tss2_exportpolicy.1 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. .\" Automatically generated by Pandoc 1.19.2.4
  2. .\"
  3. .TH "tss2_policyexport" "1" "APRIL 2019" "tpm2\-tools" "General Commands Manual"
  4. .hy
  5. .SH NAME
  6. .PP
  7. \f[B]tss2_policyexport\f[](1) \-
  8. .SH SYNOPSIS
  9. .PP
  10. \f[B]tss2_policyexport\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_policyexport\f[](1) \- This commands exports a policy
  24. associated with a key in JSON encoding.
  25. .SH OPTIONS
  26. .PP
  27. These are the available options:
  28. .IP \[bu] 2
  29. \f[B]\-f\f[], \f[B]\-\-force\f[]:
  30. .RS 2
  31. .PP
  32. Force overwriting the output file.
  33. .RE
  34. .IP \[bu] 2
  35. \f[B]\-o\f[], \f[B]\-\-jsonPolicy\f[]=\f[I]FILENAME\f[] or \f[I]\-\f[]
  36. (for stdout):
  37. .RS 2
  38. .PP
  39. Returns the JSON\-encoded policy.
  40. .RE
  41. .IP \[bu] 2
  42. \f[B]\-p\f[], \f[B]\-\-path\f[]=\f[I]STRING\f[]:
  43. .RS 2
  44. .PP
  45. The path of the key.
  46. .RE
  47. .SH COMMON OPTIONS
  48. .PP
  49. This collection of options are common to all tss2 programs and provide
  50. information that many users may expect.
  51. .IP \[bu] 2
  52. \f[B]\-h\f[], \f[B]\-\-help [man|no\-man]\f[]: Display the tools
  53. manpage.
  54. By default, it attempts to invoke the manpager for the tool, however, on
  55. failure will output a short tool summary.
  56. This is the same behavior if the "man" option argument is specified,
  57. however if explicit "man" is requested, the tool will provide errors
  58. from man on stderr.
  59. If the "no\-man" option if specified, or the manpager fails, the short
  60. options will be output to stdout.
  61. .RS 2
  62. .PP
  63. To successfully use the manpages feature requires the manpages to be
  64. installed or on \f[I]MANPATH\f[], See \f[B]man\f[](1) for more details.
  65. .RE
  66. .IP \[bu] 2
  67. \f[B]\-v\f[], \f[B]\-\-version\f[]: Display version information for this
  68. tool, supported tctis and exit.
  69. .SH EXAMPLE
  70. .IP
  71. .nf
  72. \f[C]
  73. tss2_exportpolicy\ \-\-path=HS/SRK/myRSASign\ \-\-jsonPolicy=jsonPolicy.json
  74. \f[]
  75. .fi
  76. .SH RETURNS
  77. .PP
  78. 0 on success or 1 on failure.
  79. .SH BUGS
  80. .PP
  81. Github Issues (https://github.com/tpm2-software/tpm2-tools/issues)
  82. .SH HELP
  83. .PP
  84. See the Mailing List (https://lists.01.org/mailman/listinfo/tpm2)