From 72fd3bd824074d576bd143666303720aa1a1e79f Mon Sep 17 00:00:00 2001 From: Norman Gehrsitz Date: Wed, 31 Dec 2025 03:02:10 +0100 Subject: [PATCH] acme-acme.sh: support --cert-profile option acme 3.1.2 added a new --cert-profile option to request specific certificates. This makes it possible to request shortlived six day certificates from Letsencrypt. Signed-off-by: Norman Gehrsitz --- net/acme-acmesh/Makefile | 6 +++--- net/acme-acmesh/files/hook.sh | 4 ++++ net/acme-common/Makefile | 2 +- net/acme-common/files/acme.init | 2 ++ 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/net/acme-acmesh/Makefile b/net/acme-acmesh/Makefile index 1b39376399360..c628852a83099 100644 --- a/net/acme-acmesh/Makefile +++ b/net/acme-acmesh/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=acme-acmesh -PKG_VERSION:=3.1.1 -PKG_RELEASE:=4 +PKG_VERSION:=3.1.2 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/acmesh-official/acme.sh/tar.gz/$(PKG_VERSION)? -PKG_HASH:=c5d623ac0af400e83cd676aefaf045228f60e9fc597fea5db4c3a5bd7f6bfcf4 +PKG_HASH:=a51511ad0e2912be45125cf189401e4ae776ca1a29d5768f020a1e35a9560186 PKG_BUILD_DIR:=$(BUILD_DIR)/acme.sh-$(PKG_VERSION) PKG_MAINTAINER:=Toke Høiland-Jørgensen diff --git a/net/acme-acmesh/files/hook.sh b/net/acme-acmesh/files/hook.sh index 1b6a04feaafbe..d633029d419d7 100644 --- a/net/acme-acmesh/files/hook.sh +++ b/net/acme-acmesh/files/hook.sh @@ -156,6 +156,10 @@ get) set -- "$@" --days "$days" fi + if [ "$cert_profile" ]; then + set -- "$@" --cert-profile "$cert_profile" + fi + case "$validation_method" in "dns") set -- "$@" --dns "$dns" diff --git a/net/acme-common/Makefile b/net/acme-common/Makefile index 4c7fe69f58692..f07faa1fde60d 100644 --- a/net/acme-common/Makefile +++ b/net/acme-common/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=acme-common -PKG_VERSION:=1.5.0 +PKG_VERSION:=1.5.1 PKG_MAINTAINER:=Toke Høiland-Jørgensen PKG_LICENSE:=GPL-3.0-only diff --git a/net/acme-common/files/acme.init b/net/acme-common/files/acme.init index cb2b5505d2391..b25384ef6d3be 100644 --- a/net/acme-common/files/acme.init +++ b/net/acme-common/files/acme.init @@ -61,6 +61,8 @@ load_options() { procd_append_param env acme_server="$acme_server" config_get days "$section" days procd_append_param env days="$days" + config_get cert_profile "$section" cert_profile + procd_append_param env cert_profile="$cert_profile" config_get dns_wait "$section" dns_wait procd_append_param env dns_wait="$dns_wait" config_get webroot "$section" webroot