TooTallNate / Java-WebSocket

A barebones WebSocket client and server implementation written in 100% Java.
http://tootallnate.github.io/Java-WebSocket
MIT License
10.53k stars 2.58k forks source link

Retrieve default SSL socket factory #1387

Closed pavel-treutner closed 9 months ago

pavel-treutner commented 10 months ago

Without further configuration TLS v1.2 is enforced when connecting to a server. Thus a connection to a server supporting TLS 1.3 only is refused. Recent JREs use TLS v1.2 and TLS v1.3 as the default value, which can be further adjusted via jdk.tls.client.protocols property.

Related Issue

Fixes #1382

Motivation and Context

Allows to configure TLS versions via a global property: jdk.tls.client.protocols

Checklist: