Add TPM2 testing instruxions

This commit is contained in:
наб 2020-10-18 17:36:28 +02:00
parent e4842fe8a9
commit 55fe88aabf
No known key found for this signature in database
GPG Key ID: BCFD0B018D2658F1
2 changed files with 14 additions and 2 deletions

View File

@ -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:
```sh
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.

View File

@ -13,8 +13,6 @@
#include "../tpm2.hpp"
#include "../zfs.hpp"
// ./src/swtpm/swtpm socket --server port=2321 --ctrl type=tcp,port=2322 --tpm2
#define THIS_BACKEND "TPM2"