mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-12-29 22:00:31 +00:00
Add one more log in TLS config
This commit is contained in:
parent
205e794b9e
commit
d8f3f1d0e9
1 changed files with 5 additions and 0 deletions
|
@ -186,6 +186,11 @@ impl Config {
|
||||||
let mut certs_reader = BufReader::new(std::fs::File::open(&tls.cert)?);
|
let mut certs_reader = BufReader::new(std::fs::File::open(&tls.cert)?);
|
||||||
let certs = rustls_pemfile::certs(&mut certs_reader)?;
|
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 mut key_reader = BufReader::new(std::fs::File::open(&tls.key)?);
|
||||||
let key = rustls_pemfile::read_one(&mut key_reader)?;
|
let key = rustls_pemfile::read_one(&mut key_reader)?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue