Hello, I'm still a little new to Rust and I'm trying to create an app that makes a connection to a postgres instance I've setup in GCP and for security purposes it had me create a client certificate that consists of:
- A server certificate saved as
- A client public key certificate saved as
- A client private key saved as
I have a sample project I've created here: postgres-ssl/main.rs at main · Zolmok/postgres-ssl · GitHub
It builds and seems to run OK, but I'm getting an SSL error:
thread 'main' panicked at 'connect error: error performing TLS handshake: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:../ssl/statem/statem_clnt.c:1914:: IP address mismatch', src/main.rs:69:23
I know the certificates are good because I can connect to it using an app called DataGrip from the same machine using the certificates.
My guess is that I don't have something coded quite right. Would anyone have any idea what might be wrong?