Can't establish a connection with SecurityPolice #246
-
Hello, I'm new to opcua and rust. i have problems to establishe a connection to a plc-opc-server with SecurityPolice other than NONE. I use the sample "simple-client". What is working: Connect to the plc-opc -server with the following client-config.
and end-point-config
What is NOT working: end-point-config
i get the following error-message But with another client i can connect to the server with this security-policy What thing i do make wrong? Why the other client can connect to the server? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
As the log warns about. The server certificate is not valid. To skip the validation add "verify_server_certs(false)" to the ClientBuilder. let mut client = ClientBuilder::new()
.application_name("Simple Client")
.application_uri("urn:SimpleClient")
.product_uri("urn:SimpleClient")
.trust_server_certs(true)
.create_sample_keypair(true)
.session_retry_limit(3)
.verify_server_certs(false)
.client()
.unwrap(); |
Beta Was this translation helpful? Give feedback.
-
Hello, you safe my day... i insert the But where do you read that the certificate is not valid? I only read that the certificate was rejected. The reason for the rejection was not clear for me... I research something why the server-certivicate was not valid and i found something in the config-file of the plc-opc-server... So it seeem that the other client doesn't make a validation of the certificate... |
Beta Was this translation helpful? Give feedback.
As the log warns about. The server certificate is not valid. To skip the validation add "verify_server_certs(false)" to the ClientBuilder.