I’m building a private project at the moment for $EMPLOYER, and it contains a number of components. One of the components is a client application that will be connecting to a server via a typical TCP socket that’s TLS-wrapped. The certificate that I’m using here is just a self-generated certificate.
I’m currently working through a few examples of using sockets with TLS support to connect to this endpoint. I’ve tried using native-tls, tokio and straight openssl, but I’m bumping in the same problem in every case, and that is that I can’t turn off certificate validation.
When it comes to a production scenario, certificate validation is something that I will definitely be interested in. However, for the sake of development, I’m wondering is there a way to disable certificate validation at all for TLS wrapped sockets in Rust?
If the answer is “no”, then that’s cool. I’ll go through the pain of handling that situation.
I appreciate the help. Cheers!