From 23b88eada5e53e408a369e67bab58a7fc61a52f1 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 31 Jul 2022 11:20:13 +0100 Subject: use hostnames of the servers for mail TLS certs --- frontends/scripts/acme.sh.tpl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'frontends/scripts') diff --git a/frontends/scripts/acme.sh.tpl b/frontends/scripts/acme.sh.tpl index 45be254..0d2dd3c 100644 --- a/frontends/scripts/acme.sh.tpl +++ b/frontends/scripts/acme.sh.tpl @@ -25,6 +25,12 @@ if [ $? -eq 0 ]; then fi <% } -%> +# Current server's FQDN (e.g. for mail server certs) +handle_cert <%= "$hostname.$domain" %> +if [ $? -eq 0 ]; then + has_update=yes +fi + # Pick up the new certs. if [ $has_update = yes ]; then /usr/sbin/rcctl reload httpd -- cgit v1.2.3