-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
2 - Long term
-
2 - Normal
Currently, the test to outgoing references to https servers mail fail if the server is https but has securities issues.
We should consider but cool about thoses connections : since we are not getting any informations from theses links, a non secure connection is enought so we could accept all connections.
Here is a piece of code to accept all connections with httpclient:
SSLContext sslContext = SSLContexts.custom().loadTrustMaterial(null, new TrustSelfSignedStrategy()).build(); httpclient = HttpClientBuilder.create().useSystemProperties().setSSLSocketFactory(new SSLConnectionSocketFactory(sslContext, SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER)).setRedirectStrategy(new LaxRedirectStrategy()).build();