From 683358abba09a2404dc4ccf969c61cc824046fd4 Mon Sep 17 00:00:00 2001 From: geemus Date: Thu, 11 Apr 2024 10:08:44 -0500 Subject: [PATCH] fix logic and function of expired checks --- lib/puma/acme/structs.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puma/acme/structs.rb b/lib/puma/acme/structs.rb index 0b4ca8e..ef87af2 100644 --- a/lib/puma/acme/structs.rb +++ b/lib/puma/acme/structs.rb @@ -68,7 +68,7 @@ def names end def expired?(now: Time.now.utc) - x509.not_after > now + x509.not_after < now end def usable?(now: Time.now.utc) @@ -135,7 +135,7 @@ def self.from(acme_order) end def expired?(now: Time.now.utc) - not_after > now + expires < now end end end