I was unable to recreate the error but it is probably the same root cause as JDK-8337951 (https://github.com/openjdk/jdk/pull/20728).
I updated the gencert command to explicitly set the start date to ensure the certificate is valid. ------------- Commit messages: - 8345133: Test sun/security/tools/jarsigner/TsacertOptionTest.java failed: Warning found in stdout Changes: https://git.openjdk.org/jdk/pull/22592/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22592&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8345133 Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/22592.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/22592/head:pull/22592 PR: https://git.openjdk.org/jdk/pull/22592