From be8fb140bc61e9a12f96f049c3f64bbb6471ee92 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 2 Nov 2025 22:54:20 +0200 Subject: use www.* as alt name in certs --- frontends/scripts/acme.sh.tpl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'frontends/scripts') diff --git a/frontends/scripts/acme.sh.tpl b/frontends/scripts/acme.sh.tpl index 8d30609..b3301fa 100644 --- a/frontends/scripts/acme.sh.tpl +++ b/frontends/scripts/acme.sh.tpl @@ -44,12 +44,14 @@ handle_cert () { has_update=no <% for my $host (@$acme_hosts) { -%> -<% for my $prefix ('', 'www.', 'standby.') { -%> -handle_cert <%= $prefix.$host %> +handle_cert <%= $host %> +if [ $? -eq 0 ]; then + has_update=yes +fi +handle_cert standby.<%= $host %> if [ $? -eq 0 ]; then has_update=yes fi -<% } -%> <% } -%> # Current server's FQDN (e.g. for mail server certs) -- cgit v1.2.3