File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -285,10 +285,14 @@ async fn ngx_http_acme_update_certificates_for_issuer(
285
285
{
286
286
let locked = cert. read ( ) ;
287
287
288
+ if !locked. is_valid ( ) {
289
+ continue ;
290
+ }
291
+
288
292
if !locked. is_renewable ( ) {
289
293
ngx_log_debug ! (
290
294
log. as_ptr( ) ,
291
- "acme: certificate \" {}/{}\" is not renewable " ,
295
+ "acme: certificate \" {}/{}\" is not due for renewal " ,
292
296
issuer. name,
293
297
order. cache_key( )
294
298
) ;
Original file line number Diff line number Diff line change @@ -243,7 +243,11 @@ where
243
243
}
244
244
245
245
pub fn is_renewable ( & self ) -> bool {
246
- !matches ! ( self . state, CertificateState :: Invalid { .. } ) && Time :: now ( ) >= self . next
246
+ self . is_valid ( ) && Time :: now ( ) >= self . next
247
+ }
248
+
249
+ pub fn is_valid ( & self ) -> bool {
250
+ !matches ! ( self . state, CertificateState :: Invalid { .. } )
247
251
}
248
252
}
249
253
You can’t perform that action at this time.
0 commit comments