App search not able to connect to elasticsearch directly over https

app search and elasticsearch are on same machine;
I tried with both 7.5.2 and 7.6.1 versions of elasticsearch and app search.

allow_es_settings_modification: true
elasticsearch.host: "https://kombare-es.com"
elasticsearch.username: "{{ elasticsearch_username }}"
elasticsearch.password: "{{ elasticsearch_password }}"
elasticsearch.ssl.enabled: true
elasticsearch.ssl.verify: false
app_search.external_url: https://localhost:9200
app_search.auth.source: elasticsearch-native

when I am using

elasticsearch.host: "https://kombare-es.com"
elasticsearch.ssl.verify: false

App search is starting, but not creating indexes, as I explained here Not able to index documents using app search(7.6.1).

I am suspecting that may be reverse proxy, nginx, is responsible for this, took hint from here: Issue with app search (download) release -- not quite a connection issue.

I want to try connecting app search directly, without nginx, to elasticsearch, however when I am using

elasticsearch.host: "https://localhost:9200"
# or elasticsearch.host: "https://127.0.0.1:9200"
elasticsearch.ssl.verify: false

app search is not starting with error:

 PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

looks like app search is neglecting the settings elasticsearch.ssl.verify: false when I am using localhost or 127.0.0.1

Hi @Jaaved_Ali_Khan. It's possible that we have an issue with insecure SSL connections to elasticsearch. We'll look into that.

Seems like we can close this as the issue and solution is captured in Not able to index documents using app search(7.6.1)