From 41f00c2310608c95538ff836f18c82cf962b685d Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Tue, 25 Jul 2023 17:19:21 +0700 Subject: [PATCH] [FIX] Check certificate expired --- .../main/java/pro/gravit/launchserver/helper/SignHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/helper/SignHelper.java b/LaunchServer/src/main/java/pro/gravit/launchserver/helper/SignHelper.java index 582bf741..cf86c5d4 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/helper/SignHelper.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/helper/SignHelper.java @@ -59,7 +59,7 @@ public static Instant getCertificateExpired(KeyStore keyStore, String keyAlias) if(x509Certificate.getNotAfter() == null) { continue; } - if(date == null || date.before(x509Certificate.getNotAfter())) { + if(date == null || date.after(x509Certificate.getNotAfter())) { date = x509Certificate.getNotAfter(); } }