Skip to content

Instantly share code, notes, and snippets.

@lukehinds
Last active October 15, 2018 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukehinds/83d11e2d6a48a9777434319710309a07 to your computer and use it in GitHub Desktop.
Save lukehinds/83d11e2d6a48a9777434319710309a07 to your computer and use it in GitHub Desktop.

Check ownership status

tpm2_getcap -c properties-variable

Query failure code

tpm2_rc_decode <code>

For example:

tpm2_rc_decode 0x9a2
error layer
  hex: 0x0
  identifier: TSS2_TPM_ERROR_LEVEL
  description: Error produced by the TPM
format 1 error code
  hex: 0x22
  identifier: TPM_RC_BAD_AUTH
  description: authorization failure without DA implications
session
  hex: 0x100
  identifier: TPM_RC_1
  description:  (null)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment