go-tpm-tools
go-tpm-tools copied to clipboard
Make simulator available over TCP (the same as original mssim)
trafficstars
simulator is a nice package that makes it easy to use it in tests. It works great for tests that need access from a golang app. But some integration tests use external tools to operate with TPM chip (e.g. clevis uses tpm-tools to seal passwords).
tpm-tools is a widely used tool. It allows to specify different locations for the TPM chip/simulator. e.g. export TPM2TOOLS_TCTI="mssim:host=localhost,port=2321" will make it work with the MS simulator.
It would be great if the simulator had an option to enable the TCP protocol for communication with the chip. It will allow to use utilities based on tpm-tools in the tests.