You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The output of list with correct ownership and permission is similar to the following:
198
+
199
+
```Output
200
+
azureUser@vm-h2hnm5j5uxk2a:/var/aziot$ sudo ls -Rla /var/aziot
201
+
/var/aziot:
202
+
total 16
203
+
drwxr-xr-x 4 root root 4096 Dec 14 00:16 .
204
+
drwxr-xr-x 15 root root 4096 Dec 14 00:15 ..
205
+
drw-r--r-- 2 aziotcs aziotcs 4096 Jan 14 00:31 certs
206
+
drwx------ 2 aziotks aziotks 4096 Jan 14 00:35 secrets
207
+
208
+
/var/aziot/certs:
209
+
total 20
210
+
drw-r--r-- 2 aziotcs aziotcs 4096 Jan 14 00:31 .
211
+
drwxr-xr-x 4 root root 4096 Dec 14 00:16 ..
212
+
-rw-r--r-- 1 aziotcs aziotcs 1984 Jan 14 00:24 azure-iot-test-only.root.ca.cert.pem
213
+
-rw-r--r-- 1 aziotcs aziotcs 5887 Jan 14 00:27 iot-edge-device-ca-gateway-full-chain.cert.pem
214
+
215
+
/var/aziot/secrets:
216
+
total 20
217
+
drwx------ 2 aziotks aziotks 4096 Jan 14 00:35 .
218
+
drwxr-xr-x 4 root root 4096 Dec 14 00:16 ..
219
+
-rw------- 1 aziotks aziotks 3326 Jan 14 00:29 azure-iot-test-only.root.ca.key.pem
220
+
-rw------- 1 aziotks aziotks 3243 Jan 14 00:28 iot-edge-device-ca-gateway.key.pem
192
221
```
222
+
193
223
194
224
01. Install the **root CA certificate** on the parent IoT Edge device by updating the certificate store on the device using the platform-specific command.
195
225
@@ -381,8 +411,8 @@ To enable secure connections, every IoT Edge downstream device in a gateway scen
381
411
sudo chmod 700 /var/aziot/secrets
382
412
383
413
# Copy device full-chain certificate and private key into the correct directory
01. Verify your IoT Edge device uses the correct version of the IoT Edge agent when it starts. Find the **Default Edge Agent** section and set the image value for IoT Edge to version 1.4. For example:
@@ -494,8 +524,8 @@ You should already have IoT Edge installed on your device. If not, follow the st
01. Save and close the `config.toml` configuration file. For example if you're using the **nano** editor, select **Ctrl+O** - *Write Out*, **Enter**, and **Ctrl+X** - *Exit*.
1. Certificates should be owned by the key service user **aziotcs**. Set the ownership to **aziotcs**for all the certificate files and set permissions.
151
+
1. Certificates should be owned by the key service user **aziotcs**. Set the ownership to **aziotcs**for all the certificate files and set permissions. For more information about certificate ownership and permissions, see [Permission requirements](how-to-manage-device-certificates.md#permission-requirements).
152
152
153
153
```bash
154
154
# Give aziotcs ownership to certificates
155
155
sudo chown -R aziotcs:aziotcs /var/aziot/certs
156
156
# Read and write for aziotcs, read-only for others
0 commit comments