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(); } }