Fix certificate start time

This commit is contained in:
vvb2060 2021-12-03 02:24:25 +08:00 committed by John Wu
parent 87c2f6ad14
commit 7f4f95cf83

View File

@ -41,7 +41,7 @@ class Keygen(context: Context) : CertKeyProvider {
}
private val start = Calendar.getInstance().apply { add(Calendar.MONTH, -3) }
private val end = start.apply { add(Calendar.YEAR, 30) }
private val end = (start.clone() as Calendar).apply { add(Calendar.YEAR, 30) }
override val cert get() = provider.cert
override val key get() = provider.key