Skip to content

Commit 046fb62

Browse files
committed
Refinements
1 parent 2e20a31 commit 046fb62

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

articles/iot-edge/how-to-provision-devices-at-scale-linux-tpm.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The tasks are as follows:
5050

5151
# [Physical device](#tab/physical-device)
5252

53-
A physical Linux device to be the IoT Edge device.
53+
A physical Linux device to be the IoT Edge device. This article assumes ownership of the TPM has been taken already and the endorsement key (EK) and storage root key (SRK) have been persisted. Follow the instructions relevant to your system to take ownership.
5454

5555
# [Virtual machine](#tab/virtual-machine)
5656

@@ -156,6 +156,7 @@ In this section, you build a tool that you can use to retrieve the registration
156156
make
157157
sudo ./tpm_device_provision
158158
```
159+
159160
1. The output window displays the device's **Registration ID** and the **Endorsement key**. Copy these values for use later when you create an individual enrollment for your device in the device provisioning service.
160161

161162
:::moniker-end
@@ -178,7 +179,7 @@ In this section, you use the TPM2 software tools to retrieve the endorsement key
178179

179180
```bash
180181
tpm2_readpublic -Q -c 0x81010001 -o ek.pub
181-
printf "Gathering the registration information...\n\nRegistration Id:\n%s\n\nEndorsement Key:\n%s\n" $(sha256sum -b ek.pub | cut -d' ' -f1) $(base64 -w0 ek.pub)
182+
printf "Gathering the registration information...\n\nRegistration Id:\n%s\n\nEndorsement Key:\n%s\n" $(sha256sum -b ek.pub | cut -d' ' -f1 | base32 -w0 | sed -e 's/[^[:alnum:]]//g' | base32 -d -i 2> /dev/null | sed -e 's/(.*)/L1/g') $(base64 -w0 ek.pub)
182183
```
183184

184185
1. The output window displays the device's **Registration ID** and the **Endorsement key**. Copy these values for use later when you create an individual enrollment for your device in the device provisioning service.
@@ -195,7 +196,7 @@ In this section, you use the TPM2 software tools to retrieve the endorsement key
195196
196197
```bash
197198
tpm2_readpublic -Q -c 0x81010001 -o ek.pub
198-
printf "Gathering the registration information...\n\nRegistration Id:\n%s\n\nEndorsement Key:\n%s\n" $(sha256sum -b ek.pub | cut -d' ' -f1) $(base64 -w0 ek.pub)
199+
printf "Gathering the registration information...\n\nRegistration Id:\n%s\n\nEndorsement Key:\n%s\n" $(sha256sum -b ek.pub | cut -d' ' -f1 | base32 -w0 | sed -e 's/[^[:alnum:]]//g' | base32 -d -i 2> /dev/null | sed -e 's/(.*)/L1/g') $(base64 -w0 ek.pub)
199200
```
200201
201202
1. The output window displays the device's **Registration ID** and the **Endorsement key**. Copy these values for use later when you create an individual enrollment for your device in the device provisioning service.
@@ -211,6 +212,11 @@ In this section, you use the TPM2 software tools to retrieve the endorsement key
211212
212213
After you have your registration ID and endorsement key, you're ready to continue.
213214

215+
> [!NOTE]
216+
> The Device Provisioning Service only uses the public part of the EK (EK_pub) to identify and enroll devices. It does not check the SRK or owner, so "clearing" the SRK to transfer ownership erases customer data, but the EK (and other vendor data) is preserved and the device will still be recognized by the Device Provisioning Service when it connects to provision.
217+
>
218+
> For an overview of the provisioning process with DPS see the documentation on [TPM attestation](../iot-dps/concepts-tpm-attestation.md).
219+
214220
<!-- Create an enrollment for your device using TPM provisioning information H2 and content -->
215221
[!INCLUDE [tpm-create-a-device-provision-service-enrollment.md](../../includes/tpm-create-a-device-provision-service-enrollment.md)]
216222

0 commit comments

Comments
 (0)