From 957fbb4c97b6dd6d35a44f7c67a782e85b6d8da0 Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Tue, 8 Mar 2022 16:09:14 +0000 Subject: [PATCH] Change protocol name to TLS in QuarkusRestClientBuilder --- .../io/quarkus/restclient/runtime/QuarkusRestClientBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/QuarkusRestClientBuilder.java b/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/QuarkusRestClientBuilder.java index cd614a0a8dd09..98effacb2422a 100644 --- a/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/QuarkusRestClientBuilder.java +++ b/extensions/resteasy-classic/rest-client/runtime/src/main/java/io/quarkus/restclient/runtime/QuarkusRestClientBuilder.java @@ -357,7 +357,7 @@ private void configureTrustAll(ResteasyClientBuilder clientBuilder) { if (trustAll.isPresent() && trustAll.get()) { clientBuilder.hostnameVerifier(new NoopHostnameVerifier()); try { - SSLContext sslContext = SSLContext.getInstance("SSL"); + SSLContext sslContext = SSLContext.getInstance("TLS"); sslContext.init(null, new TrustManager[] { new PassthroughTrustManager() }, new SecureRandom()); clientBuilder.sslContext(sslContext);