Mebus
Mebus
Thanks! That seems to have changed something :-)
Hey @lukasberbuer, for some reason it cannot connect to the Beckhoff PLC anymore. Your first suggestion returns these messages in my program: ``` [2024-12-06 08:42:01.481 (UTC+0000)] warn/userland AcceptAll Certificate Verification....
Hey Lukas, the Beckhoff OPC/UA server is set to "trust client certificates automatically":  Do I still have to add the certificate to the server in this case? Mebus
I have added the security policy "None" to the server:  And now I do use this code: ``` opcua::ClientConfig client_config; client_config.setSecurityMode(opcua::MessageSecurityMode::None); client_config.setUserIdentityToken(opcua::UserNameIdentityToken(config.username, config.password)); opcua::Client client(std::move(client_config)); std::cout
Hey, that's most probably the value which you can get via getSecurityPolicyUri(). ``` opcua::UserNameIdentityToken token(config.username, config.password); token.getPolicyId() = opcua::String("username_basic256sha256"); client_config.setUserIdentityToken(token); ``` My Beckhoff OPC/UA server denies any authentication now. Thus...