On Mon, 18 May 2026 04:38:59 GMT, Rajan Halade <[email protected]> wrote:
> Updated these two tests to generate and use certificates. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). test/jdk/sun/security/ssl/X509KeyManager/PreferredKey.java line 103: > 101: .setPublicKey(caKeys.getPublic()) > 102: .setNotBefore(Date.from(Instant.now().minus(1, > ChronoUnit.HOURS))) > 103: .setNotAfter(Date.from(Instant.now().plus(1, > ChronoUnit.HOURS))) 1-hour lifetime is enough for normal jtreg runs but maybe fragile. test/jdk/sun/security/ssl/X509KeyManager/SelectOneKeyOutOfMany.java line 149: > 147: .setPublicKey(caKeys.getPublic()) > 148: .setNotBefore(Date.from(Instant.now().minus(1, > ChronoUnit.HOURS))) > 149: .setNotAfter(Date.from(Instant.now().plus(1, > ChronoUnit.HOURS))) 1-hour lifetime is enough for normal jtreg runs but maybe fragile. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/31186#discussion_r3256648465 PR Review Comment: https://git.openjdk.org/jdk/pull/31186#discussion_r3256649054
