propagate better message from RustlsConfig load error. (#734)
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
11270c2d9d
commit
79ae57b671
1 changed files with 4 additions and 2 deletions
|
@ -31,12 +31,14 @@ pub(super) async fn serve(
|
||||||
.install_default()
|
.install_default()
|
||||||
.expect("failed to initialise aws-lc-rs rustls crypto provider");
|
.expect("failed to initialise aws-lc-rs rustls crypto provider");
|
||||||
|
|
||||||
debug!("Using direct TLS. Certificate path {certs} and certificate private key path {key}",);
|
|
||||||
info!(
|
info!(
|
||||||
"Note: It is strongly recommended that you use a reverse proxy instead of running \
|
"Note: It is strongly recommended that you use a reverse proxy instead of running \
|
||||||
conduwuit directly with TLS."
|
conduwuit directly with TLS."
|
||||||
);
|
);
|
||||||
let conf = RustlsConfig::from_pem_file(certs, key).await?;
|
debug!("Using direct TLS. Certificate path {certs} and certificate private key path {key}",);
|
||||||
|
let conf = RustlsConfig::from_pem_file(certs, key)
|
||||||
|
.await
|
||||||
|
.map_err(|e| err!(Config("tls", "Failed to load certificates or key: {e}")))?;
|
||||||
|
|
||||||
let mut join_set = JoinSet::new();
|
let mut join_set = JoinSet::new();
|
||||||
let app = app.into_make_service_with_connect_info::<SocketAddr>();
|
let app = app.into_make_service_with_connect_info::<SocketAddr>();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue