File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
sqlx-mysql/src/connection
sqlx-postgres/src/connection Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ pub(super) async fn maybe_upgrade<S: Socket>(
64
64
accept_invalid_hostnames : !matches ! ( options. ssl_mode, MySqlSslMode :: VerifyIdentity ) ,
65
65
hostname : & options. host ,
66
66
root_cert_path : options. ssl_ca . as_ref ( ) ,
67
+ client_cert_path : options. ssl_client_cert . as_ref ( ) ,
68
+ client_key_path : options. ssl_client_key . as_ref ( ) ,
67
69
} ;
68
70
69
71
// Request TLS upgrade
Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ async fn maybe_upgrade<S: Socket>(
58
58
accept_invalid_hostnames,
59
59
hostname : & options. host ,
60
60
root_cert_path : options. ssl_root_cert . as_ref ( ) ,
61
+ client_cert_path : options. ssl_client_cert . as_ref ( ) ,
62
+ client_key_path : options. ssl_client_key . as_ref ( ) ,
61
63
} ;
62
64
63
65
tls:: handshake ( socket, config, SocketIntoBox ) . await
You can’t perform that action at this time.
0 commit comments