tpm2_tr_encode(1) General Commands Manual tpm2_tr_encode(1) (NAME) tpm2_tr_encode - TPM2B_NAME ESYS_TR (SYNOPSIS) tpm2_tr_encode [OPTIONS] (DESCRIPTION) tpm2_tr_encode(1) TPM2 TPM2B_PUBLIC ESYS_TR . TPM TPM ESAPI API tpm2-tools(1) . (OPTIONS) o -c, --object-context=OBJECT: (Persistent handle). o -f, --format: . "tss" () (binary blob) TPM 2.0 . "pem" PEM OpenSSL . "der" DER OpenSSL . "tpmt" TPMT_PUBLIC TPM 2.0 . . o -o, --output=FILE: ESYS_TR . (References) (Context Object Format) : o (transient) TPM . o : o owner: (owner hierarchy) o platform: (platform hierarchy) o endorsement: (endorsement hierarchy) o lockout: (lockout control persistent object) o 0x81010013 ._OBJECT_. (COMMON OPTIONS) . o -h, --help=[man|no-man]: (manpage). (manpager) . "man" "man" man stderr . "no-man" manpager stdout . MANPATH man(1) . o -v, --version: TCTI . o -V, --verbose: . . o -Q, --quiet: stdout. o -Z, --enable-errata: (errata fixups). TPM . TPM2TOOLS_ENABLE_ERRATA . o -z, --pwd-session: (password session) HMAC . TPM . (unsalted) OpenSSL FIPS . auth . o -R, --autoflush: (autoflush) (transient objects) . . TPM2TOOLS_AUTOFLUSH yes true . . TCTI (TCTI Configuration) TCTI " " TPM . TCTI TPM . TCTI : 1. -T --tcti 2. : TPM2TOOLS_TCTI. : ( ). TCTI : o tabrmd - tabrmd . tabrmd abrmd tcti . o mssim - TPM . o device - TPM . o none - TPM . TPM (off-tpm) TCTI . TCTI . "none" . : : . TCTI (TCTI Defaults) TCTI TCTI dlopen(3) . TCTI tabrmd device mssim . -v TCTI . - "default-tcti" TCTI . TCTI (Custom TCTIs) TCTI TCTI . dlopen(3) tcti-name . dlopen(3) . TCTI (TCTI OPTIONS) TCTI : o device: TCTI device TPM device TCTI . /dev/tpm0 . : -T device:/dev/tpm0 export TPM2TOOLS_TCTI="device:/dev/tpm0" o mssim: TCTI mssim IP (port) . 127.0.0.1 2321 . : -T mssim:host=localhost,port=2321 export TPM2TOOLS_TCTI="mssim:host=localhost,port=2321" o abrmd: TCTI abrmd - "," . "=" . o TCTI abrmd : 1. `bus_name' : tabrmd ( ). 2. `bus_type' : dbus ( ) `session' `system' . tcti tabrmd bus_name=com.example.FooBar: \--tcti=tabrmd:bus_name=com.example.FooBar tcti (abrmd) bus_type=session: \--tcti:bus_type=session : abrmd tabrmd . TCTI. (EXAMPLES) ESYS_TR tpm2_createprimary -c primary.ctx tpm2_evictcontrol -c primary.ctx -o primary.tr 0x81000002 tpm2_readpublic -c primary.tr -o primary.pub tpm2_tr_encode -c 0x81000002 -u primary.pub -o primary2.tr (EXIT STATUS) : o 0 - . o 1 - . o 2 - . o 3 - . o 4 - TCTI. o 5 - (Non supported scheme). tpm2_testparams. (BUGS) (Github Issues) (HELP) (Mailing List) . (COPYRIGHT) Creative Commons Attribution 4.0 International License (CC BY 4.0) . tpm2-tools tpm2_tr_encode(1)