|
|
@ -130,7 +130,7 @@ public class HttpHelper { |
|
|
|
// Register http and https sockets
|
|
|
|
// Register http and https sockets
|
|
|
|
SchemeRegistry registry = new SchemeRegistry(); |
|
|
|
SchemeRegistry registry = new SchemeRegistry(); |
|
|
|
SocketFactory httpsSocketFactory; |
|
|
|
SocketFactory httpsSocketFactory; |
|
|
|
if (sslTrustKey != null) { |
|
|
|
if (sslTrustKey != null && sslTrustKey.length() != 0) { |
|
|
|
httpsSocketFactory = new TlsSniSocketFactory(sslTrustKey); |
|
|
|
httpsSocketFactory = new TlsSniSocketFactory(sslTrustKey); |
|
|
|
} else if (sslTrustAll) { |
|
|
|
} else if (sslTrustAll) { |
|
|
|
httpsSocketFactory = new TlsSniSocketFactory(true); |
|
|
|
httpsSocketFactory = new TlsSniSocketFactory(true); |
|
|
|