Skip to content

Can't establish a connection with SecurityPolice #246

Answered by schroeder-
fkemper asked this question in Q&A
Discussion options

You must be logged in to vote

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();

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by fkemper
Comment options

You must be logged in to vote
2 replies
@schroeder-
Comment options

@fkemper
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants