-
Enhancement
-
Resolution: Fixed
-
P3
-
None
-
b10
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8311771 | 17.0.9 | Alexey Bakhtin | P3 | Resolved | Fixed | b01 |
JDK-8311770 | 11.0.21 | Alexey Bakhtin | P3 | Resolved | Fixed | b01 |
1024-bit DH keys are known to be weak and are no longer recommended. Using this default should be rare under normal circumstances. A server or client would need to be configured such that no stronger suite is available that they both support and one or the other do not support FFDHE. The TLS_DHE cipher suites are lower in priority than other suites, and JDK implementations 8u261 and up all support FFDHE, which will only negotiate DH keys >= 2048 bits. But increasing this default size is still important, as a Java server may be negotiating with a non-Java TLS client that does not support FFDHE.
There was a concern in the past that some TLS clients may not support DH keys greater than 1024 bits, but this should now be very low risk. Most leading web browsers have deprecated the TLS_DHE suites so this should not be an issue. My testing shows no issues in the latest updates of JDK 6u and up, or OpenSSL 1.0.2 or later. JDK 1.5 was the last Java release that did not support DH keys greater than 1024-bits but that is a legacy release that has been unsupported for many years now.
As a workaround, users can revert to the previous size by setting the "jdk.tls.ephemeralDHKeySize" system property to 1024 (at their own risk).
This issue does not affect TLS 1.3 as the minimum DH group size is 2048 bits.
- backported by
-
JDK-8311770 Increase the default TLS Diffie-Hellman group size from 1024-bit to 2048-bit
- Resolved
-
JDK-8311771 Increase the default TLS Diffie-Hellman group size from 1024-bit to 2048-bit
- Resolved
- csr for
-
JDK-8302100 Increase the default TLS Diffie-Hellman group size from 1024-bit to 2048-bit
- Closed
- relates to
-
JDK-8062834 Allow DHKeyPair generation for bit lengths > 1024 in 6u, 7u
- Resolved
-
JDK-8302577 Update JSSE Guide for JDK-8301700: Increase the default TLS Diffie-Hellman group size from 1024-bit to 2048-bit
- Resolved
-
JDK-8072452 Support DHE sizes up to 8192-bits and DSA sizes up to 3072-bits
- Closed
-
JDK-8313229 DHEKeySizing.java should be modified to use TLS versions TLSv1, TLSv1.1, TLSv1.2
- Resolved
-
JDK-8301626 Capture Key Exchange information in TLSHandshakeEvent
- Open
- links to
-
Commit openjdk/jdk11u-dev/667acaf9
-
Commit openjdk/jdk17u-dev/7a4708b6
-
Commit openjdk/jdk/26b111d7
-
Review openjdk/jdk11u-dev/1835
-
Review openjdk/jdk17u-dev/1256
-
Review openjdk/jdk/12502