diff options
| author | Paul Buetow <paul@buetow.org> | 2025-11-02 22:54:20 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-11-02 22:57:53 +0200 |
| commit | be8fb140bc61e9a12f96f049c3f64bbb6471ee92 (patch) | |
| tree | 45b6ab520ea0b79a60d70ce5d58fd026be2a3595 /frontends/scripts | |
| parent | 6060da46c86680eaf1d2a10c2af829b7dba12475 (diff) | |
use www.* as alt name in certs
Diffstat (limited to 'frontends/scripts')
| -rw-r--r-- | frontends/scripts/acme.sh.tpl | 8 |
1 files changed, 5 insertions, 3 deletions
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) |
