From 63a824a2ed17d518932241e3f9e28d570b97e622 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 18 Jun 2024 09:59:24 -0400 Subject: [PATCH] Fixing TLS connection by installing provider. (#4844) - Fixes #4795 --- crates/db_schema/src/utils.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/db_schema/src/utils.rs b/crates/db_schema/src/utils.rs index fdfe7504c..6761adeee 100644 --- a/crates/db_schema/src/utils.rs +++ b/crates/db_schema/src/utils.rs @@ -332,6 +332,10 @@ pub fn diesel_url_create(opt: Option<&str>) -> LemmyResult> { fn establish_connection(config: &str) -> BoxFuture> { let fut = async { + rustls::crypto::ring::default_provider() + .install_default() + .expect("Failed to install rustls crypto provider"); + let rustls_config = DangerousClientConfigBuilder { cfg: ClientConfig::builder(), }