Skip to content

Commit d36cc50

Browse files
Merge pull request #293807 from spelluru/patch-632756
Added command to see the thumbprint
2 parents cb564e0 + 3398e49 commit d36cc50

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

articles/event-grid/mqtt-certificate-chain-client-authentication.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.topic: conceptual
55
ms.custom:
66
- build-2023
77
- ignite-2023
8-
ms.date: 11/15/2023
8+
ms.date: 01/29/2025
99
author: george-guirguis
1010
ms.author: geguirgu
1111
ms.subservice: mqtt
@@ -28,17 +28,21 @@ In this guide, you perform the following tasks:
2828
## Generate sample client certificate and thumbprint
2929
If you don't already have a certificate, you can create a sample certificate using the [step CLI](https://smallstep.com/docs/step-cli/installation/). Consider installing manually for Windows.
3030

31-
Once you installed Step, in Windows PowerShell, run the command to create root and intermediate certificates.
31+
1. Once you installed Step, in Windows PowerShell, run the command to create root and intermediate certificates.
3232

33-
```powershell
34-
.\step ca init --deployment-type standalone --name MqttAppSamplesCA --dns localhost --address 127.0.0.1:443 --provisioner MqttAppSamplesCAProvisioner
35-
```
33+
```powershell
34+
.\step ca init --deployment-type standalone --name MqttAppSamplesCA --dns localhost --address 127.0.0.1:443 --provisioner MqttAppSamplesCAProvisioner
35+
```
36+
2. Using the CA files generated to create certificate for the client.
3637

37-
Using the CA files generated to create certificate for the client.
38+
```powershell
39+
.\step certificate create client1-authnID client1-authnID.pem client1-authnID.key --ca .step/certs/intermediate_ca.crt --ca-key .step/secrets/intermediate_ca_key --no-password --insecure --not-after 2400h
40+
```
41+
3. To view the thumbprint, run the Step command.
3842

39-
```powershell
40-
.\step certificate create client1-authnID client1-authnID.pem client1-authnID.key --ca .step/certs/intermediate_ca.crt --ca-key .step/secrets/intermediate_ca_key --no-password --insecure --not-after 2400h
41-
```
43+
```powershell
44+
step certificate fingerprint client1-authn-ID.pem
45+
```
4246

4347
## Upload the CA certificate to the namespace
4448
1. In Azure portal, navigate to your Event Grid namespace.

0 commit comments

Comments
 (0)