You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/SWTPM.md
+12-22Lines changed: 12 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,6 @@ The software TPM transport is a socket connection by default, but we also suppor
12
12
13
13
This implementation only uses the TPM command interface typically on port 2321. It does not support the Platform interface typically on port 2322.
14
14
15
-
Some software TPM implementations require sending power up and startup commands on the platform interface before the command interface is enabled. You can use these commands to issue the required power up and startup:
16
-
17
-
```sh
18
-
echo -ne "\x00\x00\x00\x01"| nc 127.0.0.1 2322
19
-
echo -ne "\x00\x00\x00\x0B"| nc 127.0.0.1 2322
20
-
```
21
-
22
15
## wolfTPM SWTPM support
23
16
24
17
To enable the socket transport for SWTPM use `--enable-swtpm`. By default all software TPM simulators use TCP port 2321.
@@ -36,9 +29,17 @@ Build Options:
36
29
*`TPM2_SWTPM_HOST`: The socket host (default is localhost)
37
30
*`TPM2_SWTPM_PORT`: The socket port (default is 2321)
38
31
39
-
40
32
## Using a SWTPM
41
33
34
+
### SWTPM Power Up and Startup
35
+
36
+
The TCG TPM and Microsoft ms-tpm-20-ref implementations require sending power up and startup commands on the platform interface before the command interface is enabled. You can use these commands to issue the required power up and startup:
37
+
38
+
```sh
39
+
echo -ne "\x00\x00\x00\x01"| nc 127.0.0.1 2322
40
+
echo -ne "\x00\x00\x00\x0B"| nc 127.0.0.1 2322
41
+
```
42
+
42
43
### TCG TPM
43
44
44
45
```sh
@@ -52,13 +53,7 @@ make
52
53
53
54
Run with: `./Simulator/src/tpm2-simulator`
54
55
55
-
To use the TPM on port 2321 you must first connect to the platform server on port 2322 and send the power on and startup commands. An easy way to do this is using:
56
-
57
-
```sh
58
-
echo -ne "\x00\x00\x00\x01"| nc 127.0.0.1 2322
59
-
echo -ne "\x00\x00\x00\x0B"| nc 127.0.0.1 2322
60
-
```
61
-
56
+
Run power on and self test. See [SWTPM Power Up and Startup](#swtpm-power-up-and-startup).
62
57
63
58
### ibmswtpm2
64
59
@@ -71,7 +66,7 @@ make
71
66
72
67
Run with: `./tpm_server`
73
68
74
-
Note: You can use the `-rm` switch to remove the cache file NVChip. Alternately you can delete the NVChip file (`rm NVChip`)
69
+
Note: You can use the `-rm` switch to remove the cache file NVChip. Alternatively you can delete the NVChip file (`rm NVChip`)
75
70
76
71
77
72
### ms-tpm-20-ref
@@ -86,12 +81,7 @@ make
86
81
87
82
Run with: `./Simulator/src/tpm2-simulator`
88
83
89
-
To use the TPM on port 2321 you must first connect to the platform server on port 2322 and send the power on and startup commands. An easy way to do this is using:
90
-
91
-
```sh
92
-
echo -ne "\x00\x00\x00\x01"| nc 127.0.0.1 2322
93
-
echo -ne "\x00\x00\x00\x0B"| nc 127.0.0.1 2322
94
-
```
84
+
Run power on and self test. See [SWTPM Power Up and Startup](#swtpm-power-up-and-startup).
0 commit comments