Skip to content

Commit

Permalink
Merge pull request #4290 from jamezp/RESTEASY-3515-6.2
Browse files Browse the repository at this point in the history
[RESTEASY-3515] Use the SSLContext.getDefault() instead of attempting…
  • Loading branch information
jamezp authored Aug 19, 2024
2 parents 7e12ca7 + 4ddbc0a commit 3d9219b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ public Socket createSocket(HttpContext context) throws IOException {
}
};
} else {
final SSLContext tlsContext = SSLContext.getInstance(SSLConnectionSocketFactory.TLS);
tlsContext.init(null, null, null);
final SSLContext tlsContext = SSLContext.getDefault();
sslsf = new SSLConnectionSocketFactory(tlsContext, verifier);
}

Expand Down

0 comments on commit 3d9219b

Please sign in to comment.