mirror of
https://git.sr.ht/~nabijaczleweli/tzpfms
synced 2025-04-13 09:37:13 +03:00
Add TPM2 testing instruxions
This commit is contained in:
parent
e4842fe8a9
commit
55fe88aabf
14
README.md
14
README.md
@ -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.
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user