Skip to content

Commit

Permalink
fix logic and function of expired checks
Browse files Browse the repository at this point in the history
  • Loading branch information
geemus committed Apr 11, 2024
1 parent c214863 commit 683358a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puma/acme/structs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -135,7 +135,7 @@ def self.from(acme_order)
end

def expired?(now: Time.now.utc)
not_after > now
expires < now
end
end
end
Expand Down

0 comments on commit 683358a

Please sign in to comment.