Fix for Bug #18556, gxJRS: SSL protocol mismatch in production

This commit is contained in:
Massimiliano Assante 2020-02-07 09:57:05 +01:00
parent e538b00c52
commit 2cb8acd620
1 changed files with 1 additions and 2 deletions

View File

@ -69,8 +69,7 @@ public class GXWebTargetAdapterRequest implements GXHTTP<Entity<?>,GXInboundResp
Client client = ClientBuilder.newClient();
if (withHTTPS) {
try {
SSLContext sc = SSLContext.getInstance("TLSv1.2");
// System.setProperty("https.protocols", "TLSv1.2");
SSLContext sc = SSLContext.getDefault();
TrustManager[] certs = new TrustManager[] { new X509TrustManager() {
@Override
public X509Certificate[] getAcceptedIssuers() {