OPC UA with security in Node-RED doesn't work
Hi !
I've a problem with my PLC communication. I'm trying to connect via OPC UA an AXC F 2152 (client) with Node-RED application to a SIEMENS S7-1516 (server). The devices are on the same network and I use node-red-contrib-opcua 0.2.242.
The problem is that :
- OPC UA communication only works when there is no security.
- When the Node-RED client is configured with Basic256-Sign and user authentication, the node goes to timeout.
- The OPC UA connects well with other clients like UaExpert (without security and with Basic256-Sign).
- Timezone, versions and firewalls checked on both devices -> They are fine, same behavior.
What could be the problem ?
Thanks !
Clement
I've a problem with my PLC communication. I'm trying to connect via OPC UA an AXC F 2152 (client) with Node-RED application to a SIEMENS S7-1516 (server). The devices are on the same network and I use node-red-contrib-opcua 0.2.242.
The problem is that :
- OPC UA communication only works when there is no security.
- When the Node-RED client is configured with Basic256-Sign and user authentication, the node goes to timeout.
- The OPC UA connects well with other clients like UaExpert (without security and with Basic256-Sign).
- Timezone, versions and firewalls checked on both devices -> They are fine, same behavior.
What could be the problem ?
Thanks !
Clement
Comments
I had a similar issue but on the same LAN and my server was AXC F 2152 and the client was node-red/ telegraf. The self-signed certificate option didn't work for the telegraf client so I had to create my own certificate and key. I used the same pair (cert + key) on both ends so there was no more issue. The same result should be when you generate two pairs and sign them one with another.
https://www.plcnext-community.net/makersblog/how-to-use-your-own-security-certificate-with-an-opc-ua-server-on-a-plcnext-control/
I know it is not the same but perhaps it will help you to find the solution how to set up secure encrypted communication between Siemens PLC OPC UA server and Node-red client.
GR,
Lukas
I understand that my colleagues in your local Phoenix Contact office are working with you on this application.
We will provide support to them as required.
When the application is working we can post the solution here, if you want, for others to see.