@@ -119,41 +119,41 @@ If you created the certificates on a different machine, copy them over to your I
119
119
120
120
Now, you need to copy the certificates to the Azure IoT Edge for Linux on Windows virtual machine.
121
121
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
+ ```
157
157
----
158
158
159
159
<!-- 1.1 -->
0 commit comments