mirror of
https://github.com/openwrt/packages.git
synced 2026-02-04 12:06:29 +08:00
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:
committed by
Toke Høiland-Jørgensen
parent
7c822261b0
commit
c410b89632
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user