55fe88aabf6b769b20acc04f5372391ccc73b307 — наб a month ago e4842fe
Add TPM2 testing instruxions
2 files changed, 14 insertions(+), 2 deletions(-)

M src/bin/zfs-tpm2-change-key.cpp
M README.md => README.md +14 -0
@@ 45,6 45,20 @@ will work on amd64, x32, and i386.

See the [repository README](//debian.nabijaczleweli.xyz/README) for more information. -->

### Testing
#### TPM2

Build [`swtpm`](//github.com/stefanberger/swtpm), then prepare and run it:
swtpm_setup --tpmstate tpm-state --tpm2 --createek --display --logfile /dev/stdout --overwrite
swtpm socket --server type=tcp,port=2321 --ctrl type=tcp,port=2322 --tpm2 --tpmstate dir=tpm-state --flags not-need-init --log level=10

If your platform has a TPM, switch to `swtpm` by default:
ln -s /usr/lib/i386-linux-gnu/libtss2-tcti-{swtpm,default}.so

## Reporting bugs

There's [the tracker](//todo.sr.ht/~nabijaczleweli/tzpfms), but also see the list below.

M src/bin/zfs-tpm2-change-key.cpp => src/bin/zfs-tpm2-change-key.cpp +0 -2
@@ 13,8 13,6 @@
#include "../tpm2.hpp"
#include "../zfs.hpp"

// ./src/swtpm/swtpm socket --server port=2321 --ctrl type=tcp,port=2322 --tpm2