tpm2_send(1) | General Commands Manual | tpm2_send(1) |
tpm2_send(1) - Send a raw command buffer to the TPM.
tpm2_send [OPTIONS]
tpm2_send(1) Sends a TPM command to the TPM. The command is read from a file as a binary stream and transmitted to the TPM using the TCTI specified by the caller. The response received from the TPM is written to the output file.
Likely the caller will want to redirect this to a file or into a program to decode and display the response in a human readable form.
Output file to send response buffer to. Defaults to stdout.
This collection of options are common to many programs and provide information that many users may expect.
This collection of environment variables that may be used to configure the various TCTI modules available.
The values passed through these variables can be overridden on a per-command basis using the available command line options, see the TCTI_OPTIONS section.
The variables respected depend on how the software was configured.
Note: Using the tpm directly requires the users to ensure that concurrent access does not occur and that they manage the tpm resources. These tasks are usually managed by a resource manager. Linux 4.12 and greater supports an in kernel resource manager at “/dev/tpmrm”, typically “/dev/tpmrm0”.
This collection of options are used to configure the varous TCTI modules available. They override any environment variables.
Send the contents of tpm2-command.bin to a device and collect the response as tpm2-response.bin. All examples of below accomplish this task.
tpm2_send --tcti=device < tpm2-command.bin > tpm2-response.bin tpm2_send --tcti=device -i tpm2-command.bin > tpm2-response.bin tpm2_send --tcti=device < tpm2-command.bin -o tpm2-response.bin tpm2_send --tcti=device -i tpm2-command.bin -o tpm2-response.bin
0 on success or 1 on failure.
Github Issues (https://github.com/01org/tpm2-tools/issues)
See the Mailing List (https://lists.01.org/mailman/listinfo/tpm2)
SEPTEMBER 2017 | tpm2-tools |