背景:
在windows环境下运行UA demo server 和 UAexpert
https://www.unified-automation.com/downloads/opc-ua-development.html
https://www.unified-automation.com/downloads/opc-ua-clients.html
在建立安全连接时,出现
15:47:44.164 | Server Node | UaServerCpp@coolwaterld-DP ... | Connecting failed with error 'BadSecurityChecksFailed'
15:47:44.164 | Server Node | UaServerCpp@coolwaterld-DP ... | Error 'BadSecurityChecksFailed' was returned during OpenSecureChannel
15:47:44.139 | Server Node | UaServerCpp@coolwaterld-DP ... | Used UserTokenType: Anonymous
15:47:44.139 | Server Node | UaServerCpp@coolwaterld-DP ... | ApplicationUri: 'urn:coolwaterld-DP:UnifiedAutomation:UaServerCpp'
15:47:44.139 | Server Node | UaServerCpp@coolwaterld-DP ... | Security policy: 'http://opcfoundation.org/UA/SecurityPolicy#Basic256'
15:47:44.139 | Server Node | UaServerCpp@coolwaterld-DP ... | Endpoint: 'opc.tcp://coolwaterld-DP:48010'
表示需要服务器信任客户端
http://documentation.unified-automation.com/uasdkcpp/1.5.2/html/L2UaDiscoveryConnect.html
the client can attempt to create a secure channel with the server, sending along its Application Instance Certificate (including the public key of the client). This first connection attempt will be rejected, because the server doesn’t trust the client yet.


C:\ProgramData\UnifiedAutomation\UaSdkCppBundleEval\pkiserver\rejected
拷贝****.der到
C:\ProgramData\UnifiedAutomation\UaSdkCppBundleEval\pkiserver\trusted\certs
本文介绍在Windows环境下使用UAdemoserver和UAexpert时遇到的安全连接问题,特别是错误'BadSecurityChecksFailed'的解决方案。文章详细解释了如何通过手动信任客户端证书来修复此问题。

203

被折叠的 条评论
为什么被折叠?



