node.js - 如何启用在 Azure 容器实例中运行的 OPC UA 服务器?
问题描述
我正在使用 Factory IO、一个 OPC UA 服务器和其他边缘计算软件构建一个 IIoT 演示包,以检索相关的 OPC UA 标签。
我发现设置 OPC UA 服务器最简单、最可控的方法是使用 Node-Red 中的 nodre-red-contrib-opcua 模块中的节点。
我已使用 Azure CLI 脚本将运行 Node-Red 的 ACI 部署为:
az container create -g MyResourceGroup --name opcuaserver --image nodered/node-red --ip-address public --ports 80 1880 53530
,旨在将 53530 端口专用于 opc.tcp 流量。
在 Node-Red 流程中,我使用模块 OPC UA Server 和 OPC UA Client。
我需要能够opc.tcp://20.72.191.16:53530/UA/Server
从外部 OPC UA 客户端连接到端点上的 OPC UA 服务器。
当我尝试使用 OPC UA 客户端节点使用 127.0.0.1 或 20.72.191.16 的公共 ACI IP 地址作为端点的一部分访问 OPC UA 服务器时,我无法连接。到目前为止,我只是对 ACI 中的节点执行此操作。
特殊的错误消息显示:“无效的端点:配置错误:证书和私钥不匹配。
我觉得这很奇怪,因为 OPC UA 服务器节点在节点设置中设置为“自动接受未知证书”。这种设置还能在哪里更改?
我将非常感谢有关如何从外部方访问 ACI 中的 Node-Red 中运行的 OPC UA 服务器的任何提示。
解决方案
推荐阅读
- android - LOCAL_CFLAGS := -fstack-protector-all 不起作用
- javascript - 如何防止打字稿在编译文件中添加导入
- xml - FORG0001:日期无效。非数字组件
- flutter - Flutter 中用于启动画面的视频播放器
- docker - 在 Gitlab-Runner (Docker Executor) 中使用数据时遇到问题
- javascript - 为什么我的 collRect 数组没有得到项目?
- javascript - 如何使用 alpine js 使按钮集中在单击按钮上?
- arrays - 从 Google Sheet API v4 追加数据不再起作用
- java - Spring Boot:无法为@Cacheable 设置过期时间
- openapi - 如何在 OpenAPI 中引用响应组件?