forked from gCubeSystem/gx-rest
Fix for Bug #18556, gxJRS: SSL protocol mismatch in production
This commit is contained in:
parent
e538b00c52
commit
2cb8acd620
|
@ -69,8 +69,7 @@ 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.2");
|
SSLContext sc = SSLContext.getDefault();
|
||||||
// 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() {
|
||||||
|
|
Loading…
Reference in New Issue