| 作者 | 主题 |
|---|---|
|
工程进行中 游侠 经验值:402 发帖数:11 精华帖:1 |
楼主
主题:WINCC8.0 OPCUA Client安全认证连接报 “由于连接至服务器的主机名称与证书中的主机名称不匹配”
1、WINCC版本信息 测试计算机WINCC8.0版本 测试计算机WINCC7.5SP2版本信息 2、测试情况 2.1:安装了4台计算机,2台安装WINCC7.5 SP2+UPD13,2台安装WINCC8.0+UPD1; 2.2:未使用安全认证连接OPCUA测试情况:WINCC7.5SP2与WINCC8.0作为OPCUA Server或Client都可以正常使用。 2.3:使用安全认证连接OPCUA测试情况:WINCC7.5SP2作为OPCUA Server或Client都正常,WINCC8.0作为OPCUAServer可以正常使用,WINCC8.0作为OPCUA Client不能正常使用,连接本机或远程计算机OPCUA Servver,都会报以下错误:“由于连接至服务器的主机名称与证书中的主机名称不匹配” OPC UA Trace日志报错: ** Siemens WinCC OpcUaImporter: start trace ** Date: 2023-05-17 ** 08:01:56.786Z15804* COpcUaClientConfiguration::getValue OpcUa_Boolean . XML Element [SendCertificateChain] is missing 08:01:56.786Z15804* COpcUaClientConfiguration::getValue String . XML Element [Locality] is missing 08:01:56.787Z15804* COpcUaClientConfiguration::getValue String . XML Element [State] is missing 08:01:56.787Z15804* COpcUaClientConfiguration::getValue OpcUa_UInt32 . XML Element [Subs criptionLifetime] is missing 08:01:56.787Z15804* COpcUaClientConfiguration::getValue OpcUa_UInt32 . XML Element [MaxNotificationsPerPublish] is missing 08:01:56.887Z15374* <-- SecurityValidation::verificationError. nErrCode=0 ErrorMessage=ok 08:01:56.887Z15374* <-- COpcUaConnector::Connect. Failed to connect to opc.tcp://192.168.16.187:4862 Server 08:01:56.887Z15374* COpcUaReader::LoadConnection[187]. Connection loaded failed. IsClientSideError = [TRUE] 08:02:12.641Z15374* Error: UaSession::disconnect - connection error - can not call OpcUa_ClientApi_CloseSession 08:02:12.642Z15374* <-- COpcUaConnector::Connect. Failed to connect to opc.tcp://192.168.16.187:4862 Server 08:02:12.642Z15374* COpcUaReader::LoadConnection[187]. Connection loaded failed. IsClientSideError = [FALSE] 08:02:48.878Z15374* The hostname or IP address in the server certificate does not match the hostname or IP address the client connected to 08:02:48.878Z15374* Hostname / IP connected to: 192.168.16.187 08:02:48.878Z15374* DNS names in server certificate: DESKTOP-8F4VBHU 08:02:48.888Z15374* Error: UaSession::disconnect - connection error - can not call OpcUa_ClientApi_CloseSession 08:02:48.889Z15374* <-- COpcUaConnector::Connect. Failed to connect to opc.tcp://192.168.16.187:4862 Server 08:02:48.889Z15374* COpcUaReader::LoadConnection[187]. Connection loaded failed. IsClientSideError = [FALSE] 注:WINCC8.0 在没有打UPD1补丁的情况下,WINCC8.0作为OPCUA SERVER,客户端通过安全认证连接也会有异常; 问题已反馈给西门子,需等德国总部那边回复!
技术的磨合
|