Create SSLContext that supports all TLS versions
Previous value "TLSv1.2" also enabled older SSL/TLS versions
The actual versions enabled must be restricted on the SSLSocket/SSLEngine
instance (using a SSLParameters object).
@@ -122,7 +122,7 @@ public class SslContextBuilder {
public SSLContext build() {
try {
- SSLContext sslContext = SSLContext.getInstance("TLSv1.2");
+ SSLContext sslContext = SSLContext.getInstance("TLS");
TrustManager[] trustManagers = new TrustManager[] { trustManagerFactory.createTrustManager(trustStoreSupplier.get()) };
X509ExtendedKeyManager keyManager = this.keyManager != null
? this.keyManager
