A TPM 2.0 simulator based on the official TCG reference implementation of
the TPM 2.0 specification (https://github.com/microsoft/ms-tpm-20-ref).
This snap is used for running the unit tests of go-tpm2
(https://github.com/canonical/go-tpm2) and its consumers. It is NOT a
secure TPM and must not be used to protect any real secret.
The simulator is built from an unmodified upstream release plus the patches
in the patches/ directory of this recipe:
- "-e/--ephemeral" keeps the simulator's NV state in memory only.
- the simulator waits for the client to close its end of the socket,
so that the server end doesn't remain in TIME_WAIT.
- the OpenSSL version check is relaxed to allow OpenSSL 3.5.
Run it with e.g. "tpm2-simulator -e 2321".