Add TLS domain name argument

This commit is contained in:
Christian Kamm 2021-11-30 17:15:41 +01:00
parent 60ca647650
commit 17d6787bf1
4 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,7 @@ retry_connection_sleep_secs = 30
#ca_cert_path = "ca.pem"
#client_cert_path = "client.pem"
#client_key_path = "client.pem"
#domain_name = "example.com"
[snapshot_source]
rpc_http_url = ""

View File

@ -9,6 +9,7 @@ retry_connection_sleep_secs = 30
#ca_cert_path = "ca.pem"
#client_cert_path = "client.pem"
#client_key_path = "client.pem"
#domain_name = "example.com"
[snapshot_source]
rpc_http_url = ""

View File

@ -159,6 +159,7 @@ fn make_tls_config(config: &TlsConfig) -> ClientTlsConfig {
ClientTlsConfig::new()
.ca_certificate(server_root_ca_cert)
.identity(client_identity)
.domain_name(&config.domain_name)
}
pub async fn process_events(

View File

@ -89,6 +89,7 @@ pub struct TlsConfig {
pub ca_cert_path: String,
pub client_cert_path: String,
pub client_key_path: String,
pub domain_name: String,
}
#[derive(Clone, Debug, Deserialize)]