Renamed option cacert to ca-bundle.
This commit is contained in:
parent
75e073e4d3
commit
545c22fd0f
18
acme.sh
18
acme.sh
@ -743,8 +743,8 @@ _inithttp() {
|
|||||||
CURL="$CURL --trace-ascii $_CURL_DUMP "
|
CURL="$CURL --trace-ascii $_CURL_DUMP "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CACERT_BUNDLE" ] ; then
|
if [ "$CA_BUNDLE" ] ; then
|
||||||
CURL="$CURL --cacert $CACERT_BUNDLE "
|
CURL="$CURL --cacert $CA_BUNDLE "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$HTTPS_INSECURE" ] ; then
|
if [ "$HTTPS_INSECURE" ] ; then
|
||||||
@ -757,8 +757,8 @@ _inithttp() {
|
|||||||
if [ "$DEBUG" ] && [ "$DEBUG" -ge "2" ] ; then
|
if [ "$DEBUG" ] && [ "$DEBUG" -ge "2" ] ; then
|
||||||
WGET="$WGET -d "
|
WGET="$WGET -d "
|
||||||
fi
|
fi
|
||||||
if [ "$CACERT_BUNDLE" ] ; then
|
if [ "$CA_BUNDLE" ] ; then
|
||||||
WGET="$WGET --ca-certificate $CACERT_BUNDLE "
|
WGET="$WGET --ca-certificate $CA_BUNDLE "
|
||||||
fi
|
fi
|
||||||
if [ "$HTTPS_INSECURE" ] ; then
|
if [ "$HTTPS_INSECURE" ] ; then
|
||||||
WGET="$WGET --no-check-certificate "
|
WGET="$WGET --no-check-certificate "
|
||||||
@ -2777,7 +2777,7 @@ Parameters:
|
|||||||
--listraw Only used for '--list' command, list the certs in raw format.
|
--listraw Only used for '--list' command, list the certs in raw format.
|
||||||
--stopRenewOnError, -se Only valid for '--renewall' command. Stop if one cert has error in renewal.
|
--stopRenewOnError, -se Only valid for '--renewall' command. Stop 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.
|
--insecure Do not check the server certificate, in some devices, the api server's certificate may not be trusted.
|
||||||
--cacert Specifices the path to the cacert bundle to verify api server's certificate.
|
--ca-bundle Specifices the path to the CA certificate bundle to verify api server's certificate.
|
||||||
--nocron Only valid for '--install' command, which means: do not install the default cron job. In this case, the certs will not be renewed automatically.
|
--nocron Only valid for '--install' command, which means: do not install the default cron job. In this case, the certs will not be renewed automatically.
|
||||||
--ecc Specifies to use the ECC cert. Valid for '--installcert', '--renew', '--revoke', '--toPkcs' and '--createCSR'
|
--ecc Specifies to use the ECC cert. Valid for '--installcert', '--renew', '--revoke', '--toPkcs' and '--createCSR'
|
||||||
"
|
"
|
||||||
@ -2852,7 +2852,7 @@ _process() {
|
|||||||
_listraw=""
|
_listraw=""
|
||||||
_stopRenewOnError=""
|
_stopRenewOnError=""
|
||||||
_insecure=""
|
_insecure=""
|
||||||
_cacert=""
|
_ca_bundle=""
|
||||||
_nocron=""
|
_nocron=""
|
||||||
_ecc=""
|
_ecc=""
|
||||||
while [ ${#} -gt 0 ] ; do
|
while [ ${#} -gt 0 ] ; do
|
||||||
@ -3095,9 +3095,9 @@ _process() {
|
|||||||
_insecure="1"
|
_insecure="1"
|
||||||
HTTPS_INSECURE="1"
|
HTTPS_INSECURE="1"
|
||||||
;;
|
;;
|
||||||
--cacert)
|
--ca-bundle)
|
||||||
_cacert="$2"
|
_ca_bundle="$2"
|
||||||
CACERT_BUNDLE="$_cacert"
|
CA_BUNDLE="$_ca_bundle"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--nocron)
|
--nocron)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user