Skip to content

Commit 8368d8c

Browse files
authored
Indent test
1 parent c827018 commit 8368d8c

File tree

1 file changed

+36
-35
lines changed

1 file changed

+36
-35
lines changed

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

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -111,49 +111,50 @@ If you don't have your own certificate authority and want to use demo certificat
111111
* `<path>/certs/iot-edge-device-ca-<cert name>-full-chain.cert.pem` and
112112
* `<path>/private/iot-edge-device-ca-<cert name>.key.pem`
113113

114-
# [IoT Edge](#tab/iotedge)
114+
# [IoT Edge](#tab/iotedge)
115115

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

118-
# [IoT Edge for Linux on Windows](#tab/eflow)
118+
# [IoT Edge for Linux on Windows](#tab/eflow)
119119

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

122-
1. Open an elevated _PowerShell_ session by starting with **Run as Administrator**.
123-
1. Connect to the EFLOW virtual machine.
124-
```powershell
125-
Connect-EflowVm
126-
```
122+
Open an elevated _PowerShell_ session by starting with **Run as Administrator**.
123+
124+
Connect to the EFLOW virtual machine.
125+
```powershell
126+
Connect-EflowVm
127+
```
128+
129+
Create the certificates directory. You can select any writeable directory. For this tutorial, we'll use the _iotedge-user_ home folder.
130+
```bash
131+
cd ~
132+
mkdir certs
133+
cd certs
134+
mkdir certs
135+
mkdir private
136+
```
127137

128-
1. Create the certificates directory. You can select any writeable directory. For this tutorial, we'll use the _iotedge-user_ home folder.
129-
```bash
130-
cd ~
131-
mkdir certs
132-
cd certs
133-
mkdir certs
134-
mkdir private
135-
```
138+
Exit the EFLOW VM connection.
139+
```bash
140+
exit
141+
```
136142

137-
1. Exit the EFLOW VM connection.
138-
```bash
139-
exit
140-
```
143+
Copy the certificates to the EFLOW virtual machine.
144+
```powershell
145+
# Copy the IoT Edge device CA certificates
146+
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
147+
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
141148
142-
1. Copy the certificates to the EFLOW virtual machine.
143-
```powershell
144-
# Copy the IoT Edge device CA certificates
145-
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
146-
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
147-
148-
# Copy the root CA certificate
149-
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
150-
```
149+
# Copy the root CA certificate
150+
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
151+
```
151152

152-
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.
153-
```powershell
154-
Invoke-EflowVmCommand "sudo chown -R iotedge /home/iotedge-user/certs/"
155-
Invoke-EflowVmCommand "sudo chmod 0644 /home/iotedge-user/certs/"
156-
```
153+
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.
154+
```powershell
155+
Invoke-EflowVmCommand "sudo chown -R iotedge /home/iotedge-user/certs/"
156+
Invoke-EflowVmCommand "sudo chmod 0644 /home/iotedge-user/certs/"
157+
```
157158
----
158159

159160
<!-- 1.1 -->

0 commit comments

Comments
 (0)