Test case fix up for cert expiration issue. Should be clean port from JDK 23
------------- Commit messages: - Backport ac1cd3194910793b02e86c2c0dedaa321f137d4e Changes: https://git.openjdk.org/jdk22/pull/101/files Webrev: https://webrevs.openjdk.org/?repo=jdk22&pr=101&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8325096 Stats: 3 lines in 1 file changed: 2 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk22/pull/101.diff Fetch: git fetch https://git.openjdk.org/jdk22.git pull/101/head:pull/101 PR: https://git.openjdk.org/jdk22/pull/101