Add one more log in TLS config

This commit is contained in:
asonix 2022-11-20 22:47:20 -06:00
parent 205e794b9e
commit d8f3f1d0e9

View file

@ -186,6 +186,11 @@ impl Config {
let mut certs_reader = BufReader::new(std::fs::File::open(&tls.cert)?);
let certs = rustls_pemfile::certs(&mut certs_reader)?;
if certs.is_empty() {
tracing::warn!("No certs read from certificate file");
return Ok(None);
}
let mut key_reader = BufReader::new(std::fs::File::open(&tls.key)?);
let key = rustls_pemfile::read_one(&mut key_reader)?;