An easy way to bring a Software TPM emulator into your elixir application by wrapping swtpm.
Ensure the following are installed on your host system:
The package can be installed by adding swtpm to your list of dependencies
in mix.exs:
def deps do
[
{:swtpm, "~> 0.1.0"}
]
endAdd the SWTPM module spec to your application.ex. For more details see docs
for &SWTPM.child_spec/1.
defp children(:host) do
[
{SWTPM, [state_dir: "data/tpm"]}
]
end