[jdk13u-dev] RFR: 8269039: Disable SHA-1 Signed JARs

Alexey Bakhtin abakhtin at openjdk.org
Wed Aug 17 09:29:16 UTC 2022


Backport from JDK18 is not applied clean, resolved with help o JDK11 patch:
- src/java.base/share/conf/security/java.security

  - is not applied clean because 13 mentions "include jdk.disabled.namedCurves" added by JDK-8233228
- src/jdk.jartool/share/classes/sun/security/tools/jarsigner/Main.java

  - Some hunks did not apply because DISABLED_CHECK was renamed
to JAR_DISABLED_CHECK in 17 by JDK-8266225.
 
  - Other hunks patch methods not in 13: checkWeakKey(), checkWeakAlg()
as well as the calls to these methods.
- test/jdk/java/security/Security/signedfirst/Dyn.sh
 and test/jdk/java/security/Security/signedfirst/Static.sh

  - Deleting did not apply because of SunOS declaration.
- JAR files changes are not applied, copied from JDK11
- test/jdk/sun/security/tools/jarsigner/CheckSignerCertChain.java
  - 
Patch skipped, test not in 13.
- test/jdk/sun/security/tools/jarsigner/TimestampCheck.java

  - Resolved using JDK11 patch.
- test/lib/jdk/test/lib/security/SecurityUtils.java

  - The change to this file was already backported.

All sun/security/tools/jarsigner java/security/Security/signedfirst tests passed

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

Commit messages:
 - Fixed trailing witespace
 - Backport 6d91a3eb7bd1e1403cfb67f7eb8ce06d7e08e7a7

Changes: https://git.openjdk.org/jdk13u-dev/pull/389/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk13u-dev&pr=389&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8269039
  Stats: 630 lines in 25 files changed: 300 ins; 214 del; 116 mod
  Patch: https://git.openjdk.org/jdk13u-dev/pull/389.diff
  Fetch: git fetch https://git.openjdk.org/jdk13u-dev pull/389/head:pull/389

PR: https://git.openjdk.org/jdk13u-dev/pull/389


More information about the jdk-updates-dev mailing list