Update 'gxJRS/src/main/java/org/gcube/common/gxrest/request/GXWebTargetAdapterRequest.java'

restored TLS 1.2 Setting
This commit is contained in:
Massimiliano Assante 2020-02-07 12:23:12 +01:00
parent 2cb8acd620
commit d92bc514f0
1 changed files with 1 additions and 1 deletions

View File

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