# HG changeset patch # User Kim Alvefur # Date 1643297006 -3600 # Node ID 0a44def211fa725742f889d43cb3cd7c5b614073 # Parent 0795e1ccf3d8f4df5faa1777dc9ae75f3796fe43 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. diff -r 0795e1ccf3d8 -r 0a44def211fa util/prosodyctl/cert.lua --- 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