mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 14:15:14 +00:00
Fix typo that caused certs to last 9 years instead of 10
This commit is contained in:
@@ -137,10 +137,9 @@ public class SslHelper {
|
||||
nameBuilder.addRDN(BCStyle.CN, deviceId);
|
||||
nameBuilder.addRDN(BCStyle.OU, "KDE Connect");
|
||||
nameBuilder.addRDN(BCStyle.O, "KDE");
|
||||
final LocalDate localDate = LocalDate.now().minusYears(1);
|
||||
final Instant notBefore = localDate.atStartOfDay(ZoneId.systemDefault()).toInstant();
|
||||
final Instant notAfter = localDate.plusYears(10).atStartOfDay(ZoneId.systemDefault())
|
||||
.toInstant();
|
||||
final LocalDate localDate = LocalDate.now();
|
||||
final Instant notBefore = localDate.minusYears(1).atStartOfDay(ZoneId.systemDefault()).toInstant();
|
||||
final Instant notAfter = localDate.plusYears(10).atStartOfDay(ZoneId.systemDefault()).toInstant();
|
||||
X509v3CertificateBuilder certificateBuilder = new JcaX509v3CertificateBuilder(
|
||||
nameBuilder.build(),
|
||||
BigInteger.ONE,
|
||||
|
Reference in New Issue
Block a user