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
6a90856f
Commit
6a90856f
authored
Apr 05, 2022
by
neilpang
Browse files
don't renew cert if valid-to is set to an absolute date
don't renew cert if valid-to is set to an absolute date
parent
225adcc8
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
6a90856f
...
...
@@ -4317,6 +4317,13 @@ issue() {
Le_NextRenewTime
=
$(
_readdomainconf Le_NextRenewTime
)
_debug Le_NextRenewTime
"
$Le_NextRenewTime
"
if
[
-z
"
$FORCE
"
]
&&
[
"
$Le_NextRenewTime
"
]
&&
[
"
$(
_time
)
"
-lt
"
$Le_NextRenewTime
"
]
;
then
_valid_to_saved
=
$(
_readdomainconf Le_Valid_to
)
if
[
"
$_valid_to_saved
"
]
&&
!
_startswith
"
$_valid_to_saved
"
"+"
;
then
_info
"The domain is set to be valid to:
$_valid_to_saved
"
_info
"It can not be renewed automatically"
_info
"See:
$_VALIDITY_WIKI
"
return
$RENEW_SKIP
fi
_saved_domain
=
$(
_readdomainconf Le_Domain
)
_debug _saved_domain
"
$_saved_domain
"
_saved_alt
=
$(
_readdomainconf Le_Alt
)
...
...
@@ -5187,6 +5194,11 @@ $_authorizations_map"
if
[
"
$_notAfter
"
]
;
then
Le_NextRenewTime
=
$(
_date2time
"
$_notAfter
"
)
Le_NextRenewTimeStr
=
"
$_notAfter
"
if
[
"
$_valid_to
"
]
&&
!
_startswith
"
$_valid_to
"
"+"
;
then
_info
"The domain is set to be valid to:
$_valid_to
"
_info
"It can not be renewed automatically"
_info
"See:
$_VALIDITY_WIKI
"
fi
else
Le_NextRenewTime
=
$(
_math
"
$Le_CertCreateTime
"
+
"
$Le_RenewalDays
"
\*
24
\*
60
\*
60
)
Le_NextRenewTimeStr
=
$(
_time2str
"
$Le_NextRenewTime
"
)
...
...
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