From 67743b37bb1acc968318ff16c93f72ade8eae97b Mon Sep 17 00:00:00 2001 From: J M <2364004+Blu-J@users.noreply.github.com> Date: Mon, 12 Sep 2022 16:27:46 -0600 Subject: [PATCH] fix: Bad cert of *.local.local is now fixed to correct. (#1798) --- backend/src/net/nginx.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/net/nginx.rs b/backend/src/net/nginx.rs index e3fc1ba85..69d01c5c7 100644 --- a/backend/src/net/nginx.rs +++ b/backend/src/net/nginx.rs @@ -69,7 +69,7 @@ impl NginxControllerInner { }; // write main ssl key/cert to fs location let (key, cert) = ssl_manager - .certificate_for(&host_name.lan_address(), &"embassy".parse().unwrap()) + .certificate_for(host_name.as_ref(), &"embassy".parse().unwrap()) .await?; let ssl_path_key = nginx_root.join(format!("ssl/embassy_main.key.pem")); let ssl_path_cert = nginx_root.join(format!("ssl/embassy_main.cert.pem"));