ERROR :UA SESSION : connection failed :[ret : bad certificat

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
honey
Jr. Member
Jr. Member
Posts: 2
Joined: 15 May 2013, 10:23

ERROR :UA SESSION : connection failed :[ret : bad certificat

Post by honey »

Hi ,
I am trying to connect PLC from BECKHOFF automation to UA expert its working fine but when i am trying to connect UA C++ client cpp sample program by changing the node 4840 in the program the results are not good 1.discovery getting good results it automatically displays my server but it does not read and write values from the PLC server it shows
ERROR :UA SESSION : connection failed :[ret : bad certificate invalid]

User avatar
Support Team
Hero Member
Hero Member
Posts: 3072
Joined: 18 Mar 2011, 15:09

Re: ERROR :UA SESSION : connection failed :[ret : bad certif

Post by Support Team »

Dear Honey,

depending on the selected security mode the certificate is validated, obviously it is invalid and hence the session can not be established.
When using any other than the "none"-security policy than the certificate gets validated. In order to get the connection up, the certificates need to be trusted (on both sides).

Best Regards
Support Team

Post Reply