forked from gCubeSystem/gx-rest
Switched frmo TLSv1 to TLSv1.2 refs #18556
This commit is contained in:
parent
6ea1ce9eb6
commit
8fd1bbf4f4
|
@ -69,8 +69,8 @@ public class GXWebTargetAdapterRequest implements GXHTTP<Entity<?>,GXInboundResp
|
||||||
Client client = ClientBuilder.newClient();
|
Client client = ClientBuilder.newClient();
|
||||||
if (withHTTPS) {
|
if (withHTTPS) {
|
||||||
try {
|
try {
|
||||||
SSLContext sc = SSLContext.getInstance("TLSv1");
|
SSLContext sc = SSLContext.getInstance("TLSv1.2");
|
||||||
System.setProperty("https.protocols", "TLSv1");
|
// System.setProperty("https.protocols", "TLSv1.2");
|
||||||
TrustManager[] certs = new TrustManager[] { new X509TrustManager() {
|
TrustManager[] certs = new TrustManager[] { new X509TrustManager() {
|
||||||
@Override
|
@Override
|
||||||
public X509Certificate[] getAcceptedIssuers() {
|
public X509Certificate[] getAcceptedIssuers() {
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<groupId>org.gcube.common</groupId>
|
<groupId>org.gcube.common</groupId>
|
||||||
<artifactId>gxREST</artifactId>
|
<artifactId>gxREST</artifactId>
|
||||||
<version>1.1.2</version>
|
<version>1.1.3-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>gCube eXtensions to REST</name>
|
<name>gCube eXtensions to REST</name>
|
||||||
<description>gCube eXtensions to REST</description>
|
<description>gCube eXtensions to REST</description>
|
||||||
|
|
Loading…
Reference in New Issue