Skip to content

Commit f20b924

Browse files
authored
Update how-to-create-test-certificates.md
Changed command to retrieve certificate thumbprint to native PowerShell. This way the output doesn't include ':' and no need to install additional software
1 parent 96786c9 commit f20b924

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)