mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-10 08:21:49 +00:00
add --insecure Do not check the server certificate, in some devices, the api server's certificate may not be trusted.
This commit is contained in:
parent
8814a348a8
commit
13d7cae9e2
15
acme.sh
15
acme.sh
@ -986,6 +986,11 @@ _initpath() {
|
||||
CURL="$CURL --trace-ascii $dp "
|
||||
fi
|
||||
|
||||
if [ "$Le_Insecure" ] ; then
|
||||
WGET="$WGET --no-check-certificate "
|
||||
CURL="$CURL --insecure "
|
||||
fi
|
||||
|
||||
_DEFAULT_ACCOUNT_KEY_PATH="$LE_WORKING_DIR/account.key"
|
||||
if [ -z "$ACCOUNT_KEY_PATH" ] ; then
|
||||
ACCOUNT_KEY_PATH="$_DEFAULT_ACCOUNT_KEY_PATH"
|
||||
@ -1767,6 +1772,10 @@ issue() {
|
||||
_savedomainconf "Le_RenewalDays" "$Le_RenewalDays"
|
||||
fi
|
||||
|
||||
if [ "$Le_Insecure" ] ; then
|
||||
_savedomainconf "Le_Insecure" "$Le_Insecure"
|
||||
fi
|
||||
|
||||
Le_NextRenewTime=$(_math $Le_CertCreateTime + $Le_RenewalDays \* 24 \* 60 \* 60)
|
||||
_savedomainconf "Le_NextRenewTime" "$Le_NextRenewTime"
|
||||
|
||||
@ -2421,6 +2430,7 @@ Parameters:
|
||||
--tlsport Specifies the standalone tls listening port. Only valid if the server is behind a reverse proxy or load balancer.
|
||||
--listraw Only used for '--list' command, list the certs in raw format.
|
||||
--stopRenewOnError, -se Only valid for '--renewall' command. Stop to renew all if one cert has error in renewal.
|
||||
--insecure Do not check the server certificate, in some devices, the api server's certificate may not be trusted.
|
||||
"
|
||||
}
|
||||
|
||||
@ -2474,6 +2484,7 @@ _process() {
|
||||
_dnssleep=""
|
||||
_listraw=""
|
||||
_stopRenewOnError=""
|
||||
_insecure=""
|
||||
while [ ${#} -gt 0 ] ; do
|
||||
case "${1}" in
|
||||
|
||||
@ -2705,6 +2716,10 @@ _process() {
|
||||
--stopRenewOnError|--stoprenewonerror|-se )
|
||||
_stopRenewOnError="1"
|
||||
;;
|
||||
--insecure)
|
||||
_insecure="1"
|
||||
Le_Insecure="$_insecure"
|
||||
;;
|
||||
*)
|
||||
_err "Unknown parameter : $1"
|
||||
return 1
|
||||
|
Loading…
Reference in New Issue
Block a user