This commit is contained in:
Lev Kokotov
2023-04-28 18:05:28 -07:00
parent b36746a47b
commit 0d882cc204
2 changed files with 7 additions and 0 deletions

View File

@@ -861,6 +861,11 @@ impl Config {
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 {
// TODO: Make this output prettier (maybe a table?)

View File

@@ -194,6 +194,8 @@ impl Server {
match response {
// Server supports TLS
'S' => {
debug!("Connecting to server using TLS");
let mut root_store = RootCertStore::empty();
root_store.add_server_trust_anchors(
webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| {