From 46e6e5b18091df7277da65915fa71bf92448b5bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Tue, 9 Jan 2024 12:20:32 +0100 Subject: [PATCH] Fix the default hooks --- CHANGELOG.md | 6 ++++++ acmed/config/default_hooks.toml | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a05563..2ee682b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Fixed +- The default hooks were not properly updated during the 0.22.0 release, which causes the certificate renewal to fail. + + ## [0.22.1] - 2023-12-20 ### Fixed diff --git a/acmed/config/default_hooks.toml b/acmed/config/default_hooks.toml index 1300855..07114a3 100644 --- a/acmed/config/default_hooks.toml +++ b/acmed/config/default_hooks.toml @@ -29,7 +29,7 @@ allow_failure = true name = "http-01-echo-echo" type = ["challenge-http-01"] cmd = "echo" -args = ["{ proof }"] +args = ["{{ proof }}"] stdout = "{{ env.HTTP_ROOT | default('/var/www') }}/{{ identifier }}/.well-known/acme-challenge/{{ file_name }}" [[hook]] @@ -72,8 +72,8 @@ type = ["challenge-tls-alpn-01"] cmd = "tacd" args = [ "--pid-file", "{{ env.TACD_PID_ROOT | default('/run') }}/tacd_{{ identifier }}.pid", - "--domain", "{ identifier_tls_alpn }", - "--acme-ext", "{ proof }", + "--domain", "{{ identifier_tls_alpn }}", + "--acme-ext", "{{ proof }}", "--listen", "{{ env.TACD_PORT | default('5001') }}" ] @@ -83,8 +83,8 @@ type = ["challenge-tls-alpn-01"] cmd = "tacd" args = [ "--pid-file", "{{ env.TACD_PID_ROOT | default('/run') }}/tacd_{{ identifier }}.pid", - "--domain", "{ identifier_tls_alpn }", - "--acme-ext", "{ proof }", + "--domain", "{{ identifier_tls_alpn }}", + "--acme-ext", "{{ proof }}", "--listen", "unix:{{ env.TACD_SOCK_ROOT | default('/run') }}/tacd_{{ identifier }}.sock" ]