Merge pull request #4070 from acmesh-official/dev

sync
This commit is contained in:
neil 2022-05-06 18:06:37 +08:00 committed by GitHub
commit e6959f093c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
acme.sh
View File

@ -1,6 +1,6 @@
#!/usr/bin/env sh #!/usr/bin/env sh
VER=3.0.3 VER=3.0.4
PROJECT_NAME="acme.sh" PROJECT_NAME="acme.sh"
@ -2691,6 +2691,13 @@ _initAPI() {
return 1 return 1
} }
_clearCA() {
export ACME_DIRECTORY=
export CA_CONF=
export ACCOUNT_KEY_PATH=
export ACCOUNT_JSON_PATH=
}
#[domain] [keylength or isEcc flag] #[domain] [keylength or isEcc flag]
_initpath() { _initpath() {
domain="$1" domain="$1"
@ -5357,6 +5364,7 @@ renew() {
#renewAll [stopRenewOnError] #renewAll [stopRenewOnError]
renewAll() { renewAll() {
_initpath _initpath
_clearCA
_stopRenewOnError="$1" _stopRenewOnError="$1"
_debug "_stopRenewOnError" "$_stopRenewOnError" _debug "_stopRenewOnError" "$_stopRenewOnError"
_ret="0" _ret="0"