File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
plugins/event-bus/webhook/src/main/java/org/apache/cloudstack/mom/webhook Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 4848import org .apache .http .client .config .RequestConfig ;
4949import org .apache .http .client .methods .CloseableHttpResponse ;
5050import org .apache .http .client .methods .HttpPost ;
51+ import javax .net .ssl .SSLContext ;
52+
5153import org .apache .http .conn .ssl .NoopHostnameVerifier ;
5254import org .apache .http .conn .ssl .TrustAllStrategy ;
5355import org .apache .http .entity .ContentType ;
@@ -97,7 +99,9 @@ protected boolean isValidJson(String json) {
9799
98100 protected void setHttpClient () throws NoSuchAlgorithmException , KeyStoreException , KeyManagementException {
99101 if (webhook .isSslVerification ()) {
100- httpClient = HttpClients .createDefault ();
102+ httpClient = HttpClients .custom ()
103+ .setSSLContext (SSLContext .getDefault ())
104+ .build ();
101105 return ;
102106 }
103107 httpClient = HttpClients
You can’t perform that action at this time.
0 commit comments