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: src/UserGuide/V1.3.x/API/Programming-OPC-UA_timecho.md
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,13 +92,16 @@ In this mode, IoTDB's stream processing engine establishes a connection with the
92
92
2. Install UAExpert and fill in your own certificate information.
93
93
94
94
#### Quick Start
95
+
##### Scenarios Supporting the None Security Policy
95
96
96
97
1. Use the following SQL to create and start the OPC UA Sink in client-server mode. For detailed syntax, please refer to: [IoTDB OPC Server Syntax](#syntax)
97
98
98
99
```sql
99
-
create pipe p1 with sink ('sink'='opc-ua-sink');
100
+
create pipe p1 with sink ('sink'='opc-ua-sink', 'opcua.security-policy'='AES128_SHA256_RSAOAEP, AES256_SHA256_RSAPSS, BASIC256SHA256, NONE');
100
101
```
101
102
103
+
Note: Since version V1.3.7.2, None is no longer supported by default. To use it, you must manually enable it via the security-policy parameter as shown above.
104
+
102
105
2. Write some data.
103
106
104
107
```sql
@@ -135,6 +138,9 @@ In this mode, IoTDB's stream processing engine establishes a connection with the
135
138
136
139
:::
137
140
141
+
Note: Since the SecurityPolicy is set to None, mutual certificate trust is not required. For production environments, it is recommended to use a non-None SecurityPolicy for connection, which requires mutual certificate trust. For operations, refer to the Pub/Sub mode section below. In the Client/Server certificate directory (search for the keyword keyStore in the printed logs), move the contents in reject to trusted/certs. Follow the sequence: connect → move server directory → connect → move client directory → connect.
142
+
143
+
138
144
5. You can drag the node on the left to the center and display the latest value of that node:
139
145
140
146
::: center
@@ -143,6 +149,32 @@ In this mode, IoTDB's stream processing engine establishes a connection with the
143
149
144
150
:::
145
151
152
+
##### Scenarios Not Supporting the None Security Policy
153
+
1. Use the following SQL to create and start the OPC UA service.
154
+
```SQL
155
+
create pipe p1 with sink ('sink'='opc-ua-sink');
156
+
```
157
+
158
+
Note: Since version V1.3.7.2, OpcUaSink no longer supports None mode by default for security considerations.
- Do not access the URL directly; endpoints must be discovered using the Discover method
168
+
- The client first sends a GetEndpoints request with the None policy to retrieve the endpoint list
169
+
- It then selects the corresponding encrypted endpoint based on the configured Basic256Sha256 + SignAndEncrypt to establish an encrypted connection
170
+
171
+

172
+
173
+
4. Use the same username and password configuration as above. After selecting the relevant connection mode (Sign / Sign & Encrypt), if the following prompt appears, click Ignore to connect directly.
174
+
175
+

176
+
177
+
146
178
### Pub / Sub Mode
147
179
148
180
In this mode, IoTDB's stream processing engine sends data change events to the OPC UA Server through an OPC UA Sink. These events are published to the server's message queue and managed through Event Nodes. Other OPC UA Clients can subscribe to these Event Nodes to receive notifications upon data changes.
Copy file name to clipboardExpand all lines: src/UserGuide/dev-1.3/API/Programming-OPC-UA_timecho.md
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,13 +92,16 @@ In this mode, IoTDB's stream processing engine establishes a connection with the
92
92
2. Install UAExpert and fill in your own certificate information.
93
93
94
94
#### Quick Start
95
+
##### Scenarios Supporting the None Security Policy
95
96
96
97
1. Use the following SQL to create and start the OPC UA Sink in client-server mode. For detailed syntax, please refer to: [IoTDB OPC Server Syntax](#syntax)
97
98
98
99
```sql
99
-
create pipe p1 with sink ('sink'='opc-ua-sink');
100
+
create pipe p1 with sink ('sink'='opc-ua-sink', 'opcua.security-policy'='AES128_SHA256_RSAOAEP, AES256_SHA256_RSAPSS, BASIC256SHA256, NONE');
100
101
```
101
102
103
+
Note: Since version V1.3.7.2, None is no longer supported by default. To use it, you must manually enable it via the security-policy parameter as shown above.
104
+
102
105
2. Write some data.
103
106
104
107
```sql
@@ -135,6 +138,9 @@ In this mode, IoTDB's stream processing engine establishes a connection with the
135
138
136
139
:::
137
140
141
+
Note: Since the SecurityPolicy is set to None, mutual certificate trust is not required. For production environments, it is recommended to use a non-None SecurityPolicy for connection, which requires mutual certificate trust. For operations, refer to the Pub/Sub mode section below. In the Client/Server certificate directory (search for the keyword keyStore in the printed logs), move the contents in reject to trusted/certs. Follow the sequence: connect → move server directory → connect → move client directory → connect.
142
+
143
+
138
144
5. You can drag the node on the left to the center and display the latest value of that node:
139
145
140
146
::: center
@@ -143,6 +149,32 @@ In this mode, IoTDB's stream processing engine establishes a connection with the
143
149
144
150
:::
145
151
152
+
##### Scenarios Not Supporting the None Security Policy
153
+
1. Use the following SQL to create and start the OPC UA service.
154
+
```SQL
155
+
create pipe p1 with sink ('sink'='opc-ua-sink');
156
+
```
157
+
158
+
Note: Since version V1.3.7.2, OpcUaSink no longer supports None mode by default for security considerations.
- Do not access the URL directly; endpoints must be discovered using the Discover method
168
+
- The client first sends a GetEndpoints request with the None policy to retrieve the endpoint list
169
+
- It then selects the corresponding encrypted endpoint based on the configured Basic256Sha256 + SignAndEncrypt to establish an encrypted connection
170
+
171
+

172
+
173
+
4. Use the same username and password configuration as above. After selecting the relevant connection mode (Sign / Sign & Encrypt), if the following prompt appears, click Ignore to connect directly.
174
+
175
+

176
+
177
+
146
178
### Pub / Sub Mode
147
179
148
180
In this mode, IoTDB's stream processing engine sends data change events to the OPC UA Server through an OPC UA Sink. These events are published to the server's message queue and managed through Event Nodes. Other OPC UA Clients can subscribe to these Event Nodes to receive notifications upon data changes.
Copy file name to clipboardExpand all lines: src/UserGuide/latest/API/Programming-OPC-UA_timecho.md
+64-2Lines changed: 64 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,12 +110,13 @@ In this mode, IoTDB's stream processing engine establishes a connection with the
110
110
2. Install UAExpert and configure certificate information.
111
111
112
112
##### 2.2.1.2 Quick Start
113
-
113
+
###### 2.2.1.2.1 Scenarios Supporting the None Security Policy
114
114
1. Start OPC UA service using SQL (detailed syntax see [IoTDB OPC Server Syntax](./Programming-OPC-UA_timecho.md#_2-1-语法)):
115
115
116
116
```SQL
117
-
CREATE PIPE p1 WITH SINK ('sink'='opc-ua-sink');
117
+
create pipe p1 with sink ('sink'='opc-ua-sink', 'opcua.security-policy'='AES128_SHA256_RSAOAEP, AES256_SHA256_RSAPSS, BASIC256SHA256, NONE');
118
118
```
119
+
Note: Since version V2.0.8.1, None is no longer supported by default. To use it, you must manually enable it via the security-policy parameter as shown above.
119
120
120
121
2. Write some data:
121
122
@@ -124,9 +125,70 @@ INSERT INTO root.test.db(time, s2) VALUES(NOW(), 2);
124
125
```
125
126
126
127
3. Configure UAExpert to connect to IoTDB (password matches `sink.password` configured above, e.g., root/TimechoDB@2021):
Note: Since the SecurityPolicy is set to None, mutual certificate trust is not required. For production environments, it is recommended to use a non-None SecurityPolicy for connection, which requires mutual certificate trust. For operations, refer to the Pub/Sub mode section below. In the Client/Server certificate directory (search for the keyword keyStore in the printed logs), move the contents in reject to trusted/certs. Follow the sequence: connect → move server directory → connect → move client directory → connect.
156
+
157
+
128
158
5. Drag left nodes to the middle to display latest value:
- Do not access the URL directly; endpoints must be discovered using the Discover method
182
+
- The client first sends a GetEndpoints request with the None policy to retrieve the endpoint list
183
+
- It then selects the corresponding encrypted endpoint based on the configured Basic256Sha256 + SignAndEncrypt to establish an encrypted connection
184
+
185
+

186
+
187
+
4. Use the same username and password configuration as above. After selecting the relevant connection mode (Sign / Sign & Encrypt), if the following prompt appears, click Ignore to connect directly.
188
+
189
+

190
+
191
+
130
192
#### 2.2.2 Pub/Sub Mode
131
193
132
194
In this mode, IoTDB's stream processing engine sends data change events to the OPC UA Server (Server) via OPC UA Sink. These events are published to the server's message queue and managed via Event Nodes. Other OPC UA clients (Clients) can subscribe to these Event Nodes to receive notifications when data changes.
0 commit comments