summaryrefslogtreecommitdiff
path: root/frontends/scripts
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2022-07-31 11:20:13 +0100
committerPaul Buetow <paul@buetow.org>2022-07-31 11:20:13 +0100
commit23b88eada5e53e408a369e67bab58a7fc61a52f1 (patch)
treea96b9225bb40043c25a6abffc0b3c03e712b4da1 /frontends/scripts
parentd32a317172229c7cad21d93dbc287716fb993a1b (diff)
use hostnames of the servers for mail TLS certs
Diffstat (limited to 'frontends/scripts')
-rw-r--r--frontends/scripts/acme.sh.tpl6
1 files changed, 6 insertions, 0 deletions
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