JDK-8298867 : Basics.java fails with SSL handshake exception
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-12-15
  • Updated: 2024-05-29
  • Resolved: 2023-01-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 21
11.0.25-oracleFixed 17.0.10-oracleFixed 21 b06Fixed
Related Reports
Relates :  
Description
This test needs to either be updated for TLSv1.3 or updated to explicitly specify TLSv1.2 cipher suite and protocol.

javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
    at java.base/sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:163)
    at java.base/sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:103)
    at java.base/sun.security.ssl.TransportContext.kickstart(TransportContext.java:240)
    at java.base/sun.security.ssl.SSLEngineImpl.writeRecord(SSLEngineImpl.java:185)
    at java.base/sun.security.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:146)
    at java.base/sun.security.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:123)
    at java.base/javax.net.ssl.SSLEngine.wrap(SSLEngine.java:524)
    at Basics.main(Basics.java:172)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
    at java.base/java.lang.reflect.Method.invoke(Method.java:578)
    at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
    at java.base/java.lang.Thread.run(Thread.java:1599)
Comments
ix request [17u] I backport this for parity with 17.0.10-oracle. No risk, only a test change. Clean backport. Test passes. SAP nightly testing passed.
28-09-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1800 Date: 2023-09-27 08:39:03 +0000
27-09-2023

Changeset: 06f9374e Author: Matthew Donovan <matthew.p.donovan@oracle.com> Committer: Julian Waters <jwaters@openjdk.org> Date: 2023-01-17 04:41:55 +0000 URL: https://git.openjdk.org/jdk/commit/06f9374e0c59fa666e6f120749d9170f65fadc4f
17-01-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/11760 Date: 2022-12-21 23:42:48 +0000
21-12-2022