swtpm

Software TPM 2.0 emulator based on libtpms library

brewmacoslinux
Try with needOr install directly
Source

About

Software TPM Emulator based on libtpms

Commands

swtpmswtpm_setupswtpm_ioctl

Examples

Start a TPM emulator listening on a socket$ swtpm socket --tpmstate dir=/tmp/tpm --ctrl type=unixio,path=/tmp/swtpm-sock &
Initialize TPM state with default parameters$ swtpm_setup --tpmstate /tmp/tpm --tpm2 --createek
Send a command to running TPM via ioctl interface$ swtpm_ioctl --unix /tmp/swtpm-sock -c