Skip to content

Commit

Permalink
docs: update swtpm unixio example
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb authored Jul 15, 2024
1 parent 9de78f3 commit dd662dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/swtpm.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ use unix socket to connect to this emulation
```bash
mkdir /tmp/emulated_tpm
swtpm socket --tpm2 \
--server type=unixio,path=/tpm/emulated_tpm/swtpm.sock \
--server type=unixio,path=/tpm/emulated_tpm/swtpm-cmd.sock \
--ctrl type=unixio,path=/tpm/emulated_tpm/swtpm-ctrl.sock \
--ctrl type=tcp,port=2322 \
--tpmstate dir=/tmp/emulated_tpm \
--log file="swtpm.log" \
Expand All @@ -52,7 +53,7 @@ swtpm socket --tpm2 \
Set Transmission Interface (TCTI) swtpm socket, so tpm2-tools use it instead of the default char device interface.

```bash
export TPM2TOOLS_TCTI="swtpm:path=/tpm/emulated_tpm/swtpm.sock"
export TPM2TOOLS_TCTI="swtpm:path=/tpm/emulated_tpm/swtpm-cmd.sock"
```

## Testing TPM2
Expand Down

0 comments on commit dd662dd

Please sign in to comment.