Switched frmo TLSv1 to TLSv1.2 refs #18556

This commit is contained in:
Luca Frosini 2020-02-06 11:58:20 +01:00
parent 6ea1ce9eb6
commit 8fd1bbf4f4
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -10,7 +10,7 @@
<groupId>org.gcube.common</groupId>
<artifactId>gxREST</artifactId>
<version>1.1.2</version>
<version>1.1.3-SNAPSHOT</version>
<packaging>pom</packaging>
<name>gCube eXtensions to REST</name>
<description>gCube eXtensions to REST</description>