From d607d2898fc63f08c4143efc07b8eff7bb2e42a4 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 27 Jan 2022 16:23:26 +0100 Subject: util.prosodyctl.cert: Look for certs matching 'http_host' This should ensure any certificate needed for HTTP services will also be included in the certificate import. --- util/prosodyctl/cert.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util/prosodyctl/cert.lua') diff --git a/util/prosodyctl/cert.lua b/util/prosodyctl/cert.lua index a60a9647..59b6f982 100644 --- a/util/prosodyctl/cert.lua +++ b/util/prosodyctl/cert.lua @@ -201,6 +201,10 @@ function cert_commands.import(arg) for host in pairs(prosody.hosts) do if host ~= "*" and configmanager.get(host, "enabled") ~= false then table.insert(hostnames, host); + local http_host = configmanager.get(host, "http_host") or host; + if http_host ~= host then + table.insert(hostnames, http_host); + end end end end -- cgit v1.2.3