Skip to content

Commit c827018

Browse files
committed
change identation
1 parent 3eb0eba commit c827018

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

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

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -119,41 +119,41 @@ If you created the certificates on a different machine, copy them over to your I
119119

120120
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-
```
127-
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-
```
136-
137-
1. Exit the EFLOW VM connection.
138-
```bash
139-
exit
140-
```
141-
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-
```
151-
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-
```
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+
```
127+
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+
```
136+
137+
1. Exit the EFLOW VM connection.
138+
```bash
139+
exit
140+
```
141+
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+
```
151+
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+
```
157157
----
158158
159159
<!-- 1.1 -->

0 commit comments

Comments
 (0)