RFR: 8371383: Test sun/security/tools/jarsigner/DefaultOptions.java failed due to CertificateNotYetValidException

Hai-May Chao hchao at openjdk.org
Fri Nov 7 06:01:31 UTC 2025


The `DefaultOptions.java` test may fail as the current system time is before the signing certificate NotBefore time, when jarsigner tool validates it in `CertificateValidity.valid()`. Please review the fix in this test to avoid such intermittent timing problem. Thanks.

-------------

Commit messages:
 - 8371383: Test sun/security/tools/jarsigner/DefaultOptions.java failed due to CertificateNotYetValidException

Changes: https://git.openjdk.org/jdk/pull/28186/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28186&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8371383
  Stats: 6 lines in 1 file changed: 4 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/28186.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28186/head:pull/28186

PR: https://git.openjdk.org/jdk/pull/28186


More information about the security-dev mailing list