Skip to content

Commit cb6e8cf

Browse files
Merge pull request #235856 from asanjabi/patch-1
Update how-to-create-test-certificates.md
2 parents 7c14c64 + f20b924 commit cb6e8cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/iot-edge/how-to-create-test-certificates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ Your IoT device also needs a copy of its device certificates so that it can auth
303303
3. Retrieve the SHA1 thumbprint (called a thumbprint in IoT Hub contexts) from each certificate. The thumbprint is a 40 hexadecimal character string. Use the following openssl command to view the certificate and find the thumbprint:
304304

305305
```PowerShell
306-
openssl x509 -in certs\iot-device-<device name>-primary.cert.pem -text -thumbprint
306+
Write-Host (Get-Pfxcertificate -FilePath certs\iot-device-<device name>-primary.cert.pem).Thumbprint
307307
```
308308

309309
Run this command twice, once for the primary certificate and once for the secondary certificate. You provide thumbprints for both certificates when you register a new IoT device using self-signed X.509 certificates.

0 commit comments

Comments
 (0)