mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-01 14:04:03 +03:00
[FIX] Check certificate expired
This commit is contained in:
parent
85986c2916
commit
41f00c2310
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ public static Instant getCertificateExpired(KeyStore keyStore, String keyAlias)
|
||||||
if(x509Certificate.getNotAfter() == null) {
|
if(x509Certificate.getNotAfter() == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(date == null || date.before(x509Certificate.getNotAfter())) {
|
if(date == null || date.after(x509Certificate.getNotAfter())) {
|
||||||
date = x509Certificate.getNotAfter();
|
date = x509Certificate.getNotAfter();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue