JDK-8272155 : Disable SHA-1 Signed JARs
  • Type: CSR
  • Component: security-libs
  • Sub-Component: java.security
  • Priority: P3
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 18
  • Submitted: 2021-08-09
  • Updated: 2022-06-20
  • Resolved: 2021-09-20
Related Reports
CSR :  
Relates :  
Description
Summary
-------

Disable JARs signed with algorithms using SHA-1 by default, and treat them as unsigned.

Problem
-------

SHA-1 is a digest algorithm that is no longer recommended.

Solution
--------

JARs signed with SHA-1 algorithms will be disabled by default and treated as if they were unsigned. This applies to the algorithms used to digest, sign, and optionally timestamp the JAR. It also applies to the signature and digest algorithms of the certificates in the certificate chain of the code signer and the Timestamp Authority, and any CRLs or OCSP responses that are used to verify if those certificates have been revoked.

In order to reduce the compatibility risk for applications that have been previously timestamped, there is one exception to this policy:

- Any JAR signed with SHA-1 algorithms and timestamped prior to January 01, 2019 will not be restricted.

This policy is subject to change and may be made more restrictive.

Specification
-------------

The default values of the `jdk.certpath.disabledAlgorithms` and `jdk.jar.disabledAlgorithms` security properties will be adjusted as follows:

```
  jdk.certpath.disabledAlgorithms=MD2, MD5, SHA1 jdkCA & usage TLSServer, \
-     RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224
+     RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224, \
+     SHA1 usage SignedJAR & denyAfter 2019-01-01
```
```
  jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024, \
-       DSA keySize < 1024
+       DSA keySize < 1024, SHA1 denyAfter 2019-01-01
```
Comments
Hi, this is a CSR only for 18. Oracle backported it to 17. I assume there is a closed CSR? Or was it forgotten? Should I make one of my own, or can the existing one be opened up?
20-06-2022

Moving to Approved.
20-09-2021

Moving to Provisional.
01-09-2021