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 <openwrt@gehrsitz.eu>
This commit is contained in:
Norman Gehrsitz
2025-12-31 03:02:10 +01:00
committed by Toke Høiland-Jørgensen
parent 7c822261b0
commit c410b89632
4 changed files with 10 additions and 4 deletions

View File

@@ -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 <toke@toke.dk>

View File

@@ -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"

View File

@@ -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 <toke@toke.dk>
PKG_LICENSE:=GPL-3.0-only

View File

@@ -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