From 83105d4a6c8f46c52eebb6011d13ad27d414a485 Mon Sep 17 00:00:00 2001 From: Dan Jeffery Date: Mon, 8 May 2017 12:53:02 -0600 Subject: [PATCH 1/2] Add parameter to be able to specify api endpoint at the command line --- acme.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/acme.sh b/acme.sh index 7ce947ea..ca5f1f02 100755 --- a/acme.sh +++ b/acme.sh @@ -4851,6 +4851,7 @@ Parameters: --useragent Specifies the user agent string. it will be saved for future use too. --accountemail Specifies the account email for registering, Only valid for the '--install' command. --accountkey Specifies the account key path, Only valid for the '--install' command. + --apiurl, --server, -s [acme api URL] Specifies the particular acme api endpoint to use --days Specifies the days to renew the cert when using '--issue' command. The max value is $MAX_RENEW days. --httpport Specifies the standalone listening port. Only valid if the server is behind a reverse proxy or load balancer. --tlsport Specifies the standalone tls listening port. Only valid if the server is behind a reverse proxy or load balancer. @@ -4976,6 +4977,7 @@ _process() { _useragent="" _accountemail="" _accountkey="" + _apiurl="" _certhome="" _confighome="" _httpport="" @@ -5269,6 +5271,11 @@ _process() { ACCOUNT_KEY_PATH="$_accountkey" shift ;; + --apiurl | --server | -s) + _apiurl="$2" + API="$_apiurl" + shift + ;; --days) _days="$2" Le_RenewalDays="$_days" From 3aaeb0df9776d9768fcf6f85e9e76aada0c17b91 Mon Sep 17 00:00:00 2001 From: Dan Jeffery Date: Wed, 10 May 2017 13:30:01 -0600 Subject: [PATCH 2/2] only use --server, provide example --- acme.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acme.sh b/acme.sh index ca5f1f02..fcb5a132 100755 --- a/acme.sh +++ b/acme.sh @@ -4851,7 +4851,7 @@ Parameters: --useragent Specifies the user agent string. it will be saved for future use too. --accountemail Specifies the account email for registering, Only valid for the '--install' command. --accountkey Specifies the account key path, Only valid for the '--install' command. - --apiurl, --server, -s [acme api URL] Specifies the particular acme api endpoint to use + --server [acme api url] Specifies the particular acme api endpoint to use (e.g. https://acme-v01.api.letsencrypt.org) --days Specifies the days to renew the cert when using '--issue' command. The max value is $MAX_RENEW days. --httpport Specifies the standalone listening port. Only valid if the server is behind a reverse proxy or load balancer. --tlsport Specifies the standalone tls listening port. Only valid if the server is behind a reverse proxy or load balancer. @@ -5271,7 +5271,7 @@ _process() { ACCOUNT_KEY_PATH="$_accountkey" shift ;; - --apiurl | --server | -s) + --server) _apiurl="$2" API="$_apiurl" shift