Provides the TPM 1.2 and TPM 2.0 tool software stack with the command line tools along with the TPM 1.2 and the TPM 2.0 emulator.
tpmd
tcsd -e
tpm_server &
If you want to start with a fresh state run it with -rm
as an option.
Before any TPM command will work you must send it a startup command, with a real TPM it is apparently the job of the BIOS to do this.
tpm2_startup --clear
docker pull gt3389b/tpm-emulator
#test tools at the bash shell (need to start the tpm_server)
docker run -d -p 2321:2321 -p 2322:2322 -it gt3389b/tpm-emulator
#run the TPM server with fixed EK
docker run -d -p 2321:2321 -p 2322:2322 gt3389b/tpm-emulator /usr/local/bin/tpm_server -rm
#run the TPM server with RNG EK
docker run -d -p 2321:2321 -p 2322:2322 gt3389b/tpm-emulator /usr/local/bin/tpm_server_ndebug -rm