Mebus

Results 45 comments of 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": ![grafik](https://github.com/user-attachments/assets/f44b37b0-4157-4b49-966d-40122f7ec002) 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: ![grafik](https://github.com/user-attachments/assets/a6346499-bcbd-472a-8004-30dd0ac75534) 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...