mirror of
https://github.com/certimate-go/certimate.git
synced 2026-09-24 23:10:13 +08:00
fix: #1182
This commit is contained in:
@@ -211,6 +211,10 @@ func (ne *bizApplyNodeExecutor) checkCanSkip(execCtx *NodeExecutionContext, last
|
||||
}
|
||||
|
||||
if lastCertificate != nil {
|
||||
if lastCertificate.IsRevoked {
|
||||
return false, "the last requested certificate has been revoked"
|
||||
}
|
||||
|
||||
renewalInterval := time.Duration(thisNodeCfg.SkipBeforeExpiryDays) * time.Hour * 24
|
||||
expirationTime := time.Until(lastCertificate.ValidityNotAfter)
|
||||
daysLeft := int(math.Floor(expirationTime.Hours() / 24))
|
||||
|
||||
Reference in New Issue
Block a user