% tss2_policyexport(1) tpm2-tools | General Commands Manual % % APRIL 2019
tss2_policyexport(1) -
tss2_policyexport [OPTIONS]
tss2_policyexport(1) - This commands exports a policy associated with a key in JSON encoding.
These are the available options:
-
-f, --force:
Force overwriting the output file.
-
-o, --jsonPolicy=FILENAME or - (for stdout):
Returns the JSON-encoded policy.
-
-p, --path=STRING:
The path of the key.
tss2_exportpolicy --path=HS/SRK/myRSASign --jsonPolicy=jsonPolicy.json
0 on success or 1 on failure.