util/prosodyctl/cert.lua
changeset 12223 0a44def211fa
parent 12220 0f5d04c3092f
child 12391 05c250fa335a
--- a/util/prosodyctl/cert.lua	Thu Jan 27 12:52:01 2022 +0100
+++ b/util/prosodyctl/cert.lua	Thu Jan 27 16:23:26 2022 +0100
@@ -201,6 +201,10 @@
 			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