Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
17520043
Commit
17520043
authored
Jun 25, 2021
by
neilpang
Browse files
fix deactivate
parent
536a5f7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
17520043
...
...
@@ -2535,6 +2535,16 @@ __initHome() {
fi
}
_clearAPI
()
{
ACME_NEW_ACCOUNT
=
""
ACME_KEY_CHANGE
=
""
ACME_NEW_AUTHZ
=
""
ACME_NEW_ORDER
=
""
ACME_REVOKE_CERT
=
""
ACME_NEW_NONCE
=
""
ACME_AGREEMENT
=
""
}
#server
_initAPI
()
{
_api_server
=
"
${
1
:-
$ACME_DIRECTORY
}
"
...
...
@@ -5032,6 +5042,9 @@ renew() {
_debug Le_API
"
$Le_API
"
if
[
"
$Le_API
"
]
;
then
if
[
"
$Le_API
"
!=
"
$ACME_DIRECTORY
"
]
;
then
_clearAPI
fi
export
ACME_DIRECTORY
=
"
$Le_API
"
#reload ca configs
ACCOUNT_KEY_PATH
=
""
...
...
@@ -5039,6 +5052,7 @@ renew() {
CA_CONF
=
""
_debug3
"initpath again."
_initpath
"
$Le_Domain
"
"
$_isEcc
"
_initAPI
fi
if
[
-z
"
$FORCE
"
]
&&
[
"
$Le_NextRenewTime
"
]
&&
[
"
$(
_time
)
"
-lt
"
$Le_NextRenewTime
"
]
;
then
...
...
@@ -5781,6 +5795,9 @@ _deactivate() {
_debug Le_API
"
$Le_API
"
if
[
"
$Le_API
"
]
;
then
if
[
"
$Le_API
"
!=
"
$ACME_DIRECTORY
"
]
;
then
_clearAPI
fi
export
ACME_DIRECTORY
=
"
$Le_API
"
#reload ca configs
ACCOUNT_KEY_PATH
=
""
...
...
@@ -5788,6 +5805,7 @@ _deactivate() {
CA_CONF
=
""
_debug3
"initpath again."
_initpath
"
$Le_Domain
"
"
$_d_type
"
_initAPI
fi
_identifiers
=
"{
\"
type
\"
:
\"
dns
\"
,
\"
value
\"
:
\"
$_d_domain
\"
}"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment