Skip to content

Commit 4104aaa

Browse files
authored
Add headings
1 parent 16208a7 commit 4104aaa

File tree

1 file changed

+26
-14
lines changed

1 file changed

+26
-14
lines changed

articles/iot-edge/how-to-create-transparent-gateway.md

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -102,58 +102,70 @@ Have the following files ready:
102102

103103
For production scenarios, you should generate these files with your own certificate authority. For development and test scenarios, you can use demo certificates.
104104

105+
### Create demo certificates
106+
105107
If you don't have your own certificate authority and want to use demo certificates, follow the instructions in [Create demo certificates to test IoT Edge device features](how-to-create-test-certificates.md) to create your files. On that page, you need to take the following steps:
106108

107109
1. To start, set up the scripts for generating certificates on your device.
108110
1. Create a root CA certificate. At the end of those instructions, you'll have a root CA certificate file `<path>/certs/azure-iot-test-only.root.ca.cert.pem`.
109111
1. Create IoT Edge device CA certificates. At the end of those instructions, you'll have a device CA certificate `<path>/certs/iot-edge-device-ca-<cert name>-full-chain.cert.pem` its private key `<path>/private/iot-edge-device-ca-<cert name>.key.pem`.
110112

111-
# [IoT Edge](#tab/iotedge)
113+
### Copy certificates to device
114+
115+
# [IoT Edge](#tab/iotedge)
112116

113-
If you created the certificates on a different machine, copy them over to your IoT Edge device then proceed with the next steps.
117+
If you created the certificates on a different machine, copy them over to your IoT Edge device then proceed with the next steps.
114118

115-
# [IoT Edge for Linux on Windows](#tab/eflow)
119+
# [IoT Edge for Linux on Windows](#tab/eflow)
116120

117-
Now, you need to copy the certificates to the Azure IoT Edge for Linux on Windows virtual machine.
121+
Now, you need to copy the certificates to the Azure IoT Edge for Linux on Windows virtual machine.
118122

119-
Open an elevated _PowerShell_ session by starting with **Run as Administrator**.
123+
1. Open an elevated _PowerShell_ session by starting with **Run as Administrator**.
120124

121125
Connect to the EFLOW virtual machine.
126+
122127
```powershell
123128
Connect-EflowVm
124129
```
125-
126-
Create the certificates directory. You can select any writeable directory. For this tutorial, we'll use the _iotedge-user_ home folder.
130+
131+
1. Create the certificates directory. You can select any writeable directory. For this tutorial, we'll use the _iotedge-user_ home folder.
132+
127133
```bash
128134
cd ~
129135
mkdir certs
130136
cd certs
131137
mkdir certs
132138
mkdir private
133139
```
134-
135-
Exit the EFLOW VM connection.
140+
141+
1. Exit the EFLOW VM connection.
142+
136143
```bash
137144
exit
138145
```
139-
140-
Copy the certificates to the EFLOW virtual machine.
146+
147+
1. Copy the certificates to the EFLOW virtual machine.
148+
141149
```powershell
142150
# Copy the IoT Edge device CA certificates
143151
Copy-EflowVMFile -fromFile <path>\certs\iot-edge-device-ca-<cert name>-full-chain.cert.pem -toFile /home/iotedge-user/certs/certs/iot-edge-device-ca-<cert name>-full-chain.cert.pem -pushFile
144152
Copy-EflowVMFile -fromFile <path>\private\iot-edge-device-ca-<cert name>.key.pem -toFile /home/iotedge-user/certs/private/iot-edge-device-ca-<cert name>.key.pem -pushFile
145-
153+
146154
# Copy the root CA certificate
147155
Copy-EflowVMFile -fromFile <path>\certs\azure-iot-test-only.root.ca.cert.pem -toFile /home/iotedge-user/certs/certs/azure-iot-test-only.root.ca.cert.pem -pushFile
148156
```
149-
150-
Invoke the following commands on the EFLOW VM to grant iotedge permissions to the certificate files since `Copy-EflowVMFile` copies files with root only access permissions.
157+
158+
1. Invoke the following commands on the EFLOW VM to grant iotedge permissions to the certificate files since `Copy-EflowVMFile` copies files with root only access permissions.
159+
151160
```powershell
152161
Invoke-EflowVmCommand "sudo chown -R iotedge /home/iotedge-user/certs/"
153162
Invoke-EflowVmCommand "sudo chmod 0644 /home/iotedge-user/certs/"
154163
```
164+
155165
----
156166

167+
### Configure certificates on device
168+
157169
<!-- 1.1 -->
158170
:::moniker range="iotedge-2018-06"
159171

0 commit comments

Comments
 (0)