ASNeG / OpcUaStack

Open Source OPC UA Application Server and OPC UA Client/Server C++ Libraries
https://asneg.github.io/projects/opcuastack
Apache License 2.0
119 stars 41 forks source link

Login chrash #560

Open huebl opened 1 year ago

huebl commented 1 year ago

An OPC UA Client opens a connection to the OPC UA Server with the following parameters.

a. Security Policy => Basic128Rsa15 b. Message Security Mode => Sign & Encrypt c. OPC Ua Client uses Self Signed Certificate

The connection is rejected with the result code BadCertificateUntrusted.

The following log messages were issued.

2023-Apr-11 13:28:19.575841 ERR [ThrSrv_4] found self signed certificate with ca flag
2023-Apr-11 13:28:19.575841 ERR [ThrSrv_4] validate self signed error
2023-Apr-11 13:28:19.588489 ERR [ThrSrv_4] client certificate not trusted

The OPC Ua server crashes on a Windows system. More information about the crash is not yet available.

huebl commented 1 year ago

In the OpcUaServer there is a rule that an OPC UA client with a self-signed certificate must not contain a CA flag if this is the only certificate in the list. This rule should be removed.