mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-27 18:56:30 +00:00
thats it
This commit is contained in:
@@ -861,6 +861,11 @@ impl Config {
|
|||||||
info!("TLS support is disabled");
|
info!("TLS support is disabled");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
info!("Server TLS enabled: {}", self.general.server_tls);
|
||||||
|
info!(
|
||||||
|
"Server TLS certificate verification: {}",
|
||||||
|
self.general.verify_server_certificate
|
||||||
|
);
|
||||||
|
|
||||||
for (pool_name, pool_config) in &self.pools {
|
for (pool_name, pool_config) in &self.pools {
|
||||||
// TODO: Make this output prettier (maybe a table?)
|
// TODO: Make this output prettier (maybe a table?)
|
||||||
|
|||||||
@@ -194,6 +194,8 @@ impl Server {
|
|||||||
match response {
|
match response {
|
||||||
// Server supports TLS
|
// Server supports TLS
|
||||||
'S' => {
|
'S' => {
|
||||||
|
debug!("Connecting to server using TLS");
|
||||||
|
|
||||||
let mut root_store = RootCertStore::empty();
|
let mut root_store = RootCertStore::empty();
|
||||||
root_store.add_server_trust_anchors(
|
root_store.add_server_trust_anchors(
|
||||||
webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| {
|
webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| {
|
||||||
|
|||||||
Reference in New Issue
Block a user