acme: update to 3.0.1
authorGeorgi Valkov <gvalkov@abv.bg>
Mon, 4 Oct 2021 19:03:16 +0000 (22:03 +0300)
committerToke Høiland-Jørgensen <toke@toke.dk>
Sun, 10 Oct 2021 07:35:41 +0000 (09:35 +0200)
Default to letsencrypt because the upstream default may change.
Passing --staging is no longer needed, since --serever will
select a staging server if needed.

Signed-off-by: Georgi Valkov <gvalkov@abv.bg>
Tested-by: Georgi Valkov <gvalkov@abv.bg>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
net/acme/Makefile
net/acme/files/run.sh

index 90c0b590968a40b5129250ce49fb1fb66ee5a3c2..f93e1d439a3d82aeb9dee0031f188533dc7afa28 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=acme
-PKG_VERSION:=2.9.0
+PKG_VERSION:=3.0.1
 PKG_RELEASE:=$(AUTORELEASE)
 
 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:=bb8cfb8333bc9e986bb8b7644d518bc238b353c871c343b7edf8cda7b7dd903c
+PKG_HASH:=6212cc0c2bca99a7dd6cbb4236b4c7dd5d1113dab0841e66dae4d307d902a8e6
 PKG_BUILD_DIR:=$(BUILD_DIR)/acme.sh-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Toke Høiland-Jørgensen <toke@toke.dk>
index 2401c95f146bcd63060ba7a00dccf62d68875c5f..252276fefaf80a07efa1b1cd9e41da0df711745d 100644 (file)
@@ -275,11 +275,17 @@ issue_cert() {
        acme_args="$acme_args $(for d in $domains; do echo -n "-d $d "; done)"
        acme_args="$acme_args --keylength $keylength"
        [ -n "$ACCOUNT_EMAIL" ] && acme_args="$acme_args --accountemail $ACCOUNT_EMAIL"
-       [ "$use_staging" -eq "1" ] && acme_args="$acme_args --staging"
 
        if [ -n "$acme_server" ]; then
                log "Using custom ACME server URL"
                acme_args="$acme_args --server $acme_server"
+       else
+               # default to letsencrypt because the upstream default may change
+               if [ "$use_staging" -eq "1" ]; then
+                       acme_args="$acme_args --server letsencrypt_test"
+               else
+                       acme_args="$acme_args --server letsencrypt"
+               fi
        fi
 
        if [ -n "$days" ]; then