% tpm2(1) tpm2-tools | General Commands Manual
tpm2(1) - A single small executable that combines the various tpm2-tools much like a BusyBox that provides a fairly complete environment for any small or embedded system.
tpm2 [OPTIONS] [ARGUMENTS]
tpm2(1) - To ease installation of tpm2-tools in initrd or embedded systems where size-optimization and limited resources are important, it is convenient to have a single executable that can dispatch the various TPM2 functionalities specified by the argument which is one of the available tool names.
The options and arguments that follow are either the common options or those specific to the tool name.
It is important to note that individual tools with prefix tpm2_ can still be invoked, however, they are now soft-linked to this tpm2 executable. And so unlike BusyBox, full functionality of the individual tools is available in the executable. For example: tpm2_getrandom 8 can alternatively be specified as tpm2 getrandom 8.
List of possible tool names. NOTE: Specify only one of these. Look at examples.
certifyX509certutil
checkquote
eventlog
rc_decode
activatecredential
certify
changeauth
changeeps
changepps
clear
clearcontrol
clockrateadjust
create
createak
createek
createpolicy
setprimarypolicy
createprimary
dictionarylockout
duplicate
getcap
gettestresult
encryptdecrypt
evictcontrol
flushcontext
getekcertificate
getrandom
gettime
hash
hierarchycontrol
hmac
import
incrementalselftest
load
loadexternal
makecredential
nvdefine
nvextend
nvincrement
nvreadpublic
nvread
nvreadlock
nvundefine
nvwrite
nvwritelock
nvsetbits
pcrallocate
pcrevent
pcrextend
pcrread
pcrreset
policypcr
policyauthorize
policyauthorizenv
policynv
policycountertimer
policyor
policynamehash
policytemplate
policycphash
policypassword
policysigned
policyticket
policyauthvalue
policysecret
policyrestart
policycommandcode
policynvwritten
policyduplicationselect
policylocality
quote
readclock
readpublic
rsadecrypt
rsaencrypt
send
selftest
sessionconfig
setclock
shutdown
sign
certifycreation
nvcertify
startauthsession
startup
stirrandom
testparms
unseal
verifysignature
setcommandauditstatus
getcommandauditdigest
getsessionauditdigest
geteccparameters
ecephemeral
commit
ecdhkeygen
ecdhzgen
zgen2phase
common options collection of common options that provide information many users may expect.
common tcti options collection of options used to configure the various known TCTI modules.
tpm2 getrandom 8 | xxd -p
tpm2 startup -c