//okhttp-tls/okhttp3.tls/HeldCertificate/Builder/validityInterval
validityInterval¶
[jvm]\ fun validityInterval(notBefore: Long, notAfter: Long): HeldCertificate.Builder
Sets the certificate to be valid in [notBefore..notAfter]
. Both endpoints are specified in the format of System.currentTimeMillis. Specify -1L for both values to use the default interval, 24 hours starting when the certificate is created.