Github user MikeThomsen commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/2113#discussion_r175411050
  
    --- Diff: 
nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-client-service/src/main/java/org/apache/nifi/elasticsearch/ElasticSearchClientServiceImpl.java
 ---
    @@ -121,7 +119,7 @@ private void setupClient(ConfigurationContext context) 
throws Exception {
     
             RestClientBuilder builder = RestClient.builder(hh)
                     .setHttpClientConfigCallback(httpClientBuilder -> {
    -                    if (sslService != null) {
    +                    if (sslService != null && 
sslService.isKeyStoreConfigured() && sslService.isTrustStoreConfigured()) {
                             try {
    --- End diff --
    
    Done. I moved that logic out and have the it bubble it up with an 
InitializationException if any of those exceptions are thrown.


---

Reply via email to