From bd51accfd7d4b6d5409004133759c3c5a813022c Mon Sep 17 00:00:00 2001 From: Wesley Beary Date: Thu, 11 Apr 2024 14:34:43 -0500 Subject: [PATCH] fix logic and function of expired checks (#9) --- 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