Add TLS domain name argument
This commit is contained in:
parent
60ca647650
commit
17d6787bf1
|
@ -9,6 +9,7 @@ retry_connection_sleep_secs = 30
|
||||||
#ca_cert_path = "ca.pem"
|
#ca_cert_path = "ca.pem"
|
||||||
#client_cert_path = "client.pem"
|
#client_cert_path = "client.pem"
|
||||||
#client_key_path = "client.pem"
|
#client_key_path = "client.pem"
|
||||||
|
#domain_name = "example.com"
|
||||||
|
|
||||||
[snapshot_source]
|
[snapshot_source]
|
||||||
rpc_http_url = ""
|
rpc_http_url = ""
|
||||||
|
|
|
@ -9,6 +9,7 @@ retry_connection_sleep_secs = 30
|
||||||
#ca_cert_path = "ca.pem"
|
#ca_cert_path = "ca.pem"
|
||||||
#client_cert_path = "client.pem"
|
#client_cert_path = "client.pem"
|
||||||
#client_key_path = "client.pem"
|
#client_key_path = "client.pem"
|
||||||
|
#domain_name = "example.com"
|
||||||
|
|
||||||
[snapshot_source]
|
[snapshot_source]
|
||||||
rpc_http_url = ""
|
rpc_http_url = ""
|
||||||
|
|
|
@ -159,6 +159,7 @@ fn make_tls_config(config: &TlsConfig) -> ClientTlsConfig {
|
||||||
ClientTlsConfig::new()
|
ClientTlsConfig::new()
|
||||||
.ca_certificate(server_root_ca_cert)
|
.ca_certificate(server_root_ca_cert)
|
||||||
.identity(client_identity)
|
.identity(client_identity)
|
||||||
|
.domain_name(&config.domain_name)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn process_events(
|
pub async fn process_events(
|
||||||
|
|
|
@ -89,6 +89,7 @@ pub struct TlsConfig {
|
||||||
pub ca_cert_path: String,
|
pub ca_cert_path: String,
|
||||||
pub client_cert_path: String,
|
pub client_cert_path: String,
|
||||||
pub client_key_path: String,
|
pub client_key_path: String,
|
||||||
|
pub domain_name: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Deserialize)]
|
#[derive(Clone, Debug, Deserialize)]
|
||||||
|
|
Loading…
Reference in New Issue