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
Copy file name to clipboardExpand all lines: articles/iot-edge/how-to-create-transparent-gateway.md
+26-14Lines changed: 26 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,58 +102,70 @@ Have the following files ready:
102
102
103
103
For production scenarios, you should generate these files with your own certificate authority. For development and test scenarios, you can use demo certificates.
104
104
105
+
### Create demo certificates
106
+
105
107
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:
106
108
107
109
1. To start, set up the scripts for generating certificates on your device.
108
110
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`.
109
111
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`.
110
112
111
-
# [IoT Edge](#tab/iotedge)
113
+
### Copy certificates to device
114
+
115
+
# [IoT Edge](#tab/iotedge)
112
116
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.
114
118
115
-
# [IoT Edge for Linux on Windows](#tab/eflow)
119
+
# [IoT Edge for Linux on Windows](#tab/eflow)
116
120
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.
118
122
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**.
120
124
121
125
Connect to the EFLOW virtual machine.
126
+
122
127
```powershell
123
128
Connect-EflowVm
124
129
```
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
+
127
133
```bash
128
134
cd~
129
135
mkdir certs
130
136
cd certs
131
137
mkdir certs
132
138
mkdir private
133
139
```
134
-
135
-
Exit the EFLOW VM connection.
140
+
141
+
1. Exit the EFLOW VM connection.
142
+
136
143
```bash
137
144
exit
138
145
```
139
-
140
-
Copy the certificates to the EFLOW virtual machine.
146
+
147
+
1. Copy the certificates to the EFLOW virtual machine.
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.
0 commit comments