Getting this log while starting service.
[2023-02-10T10:48:58.588+00:00][29933][4004][app-server][WARN]: [pre-flight] Failed to connect to Elasticsearch backend. Make sure it is running and healthy.
[2023-02-10T10:48:58.589+00:00][29933][4004][app-server][INFO]: [pre-flight] Error: /home/ec2-user/enterprise-search-8.6.1/lib/war/shared_togo/lib/shared_togo/elasticsearch_checks.class:179: Connect to 10.0.3.249:9200 [/10.0.3.249] failed: Connection refused (Faraday::ConnectionFailed)
Have added below config in enterprise-search.yml as per Download Elastic Enterprise Search | Elastic
secret_management.encryption_keys: ["sdfsdf/B?sdfdsf(G+KbPeShVmY"]
allow_es_settings_modification: true
elasticsearch.host: https://10.0.3.249:9200
elasticsearch.username: elastic
elasticsearch.password: dffdsfdsf
elasticsearch.ssl.enabled: true
elasticsearch.ssl.certificate_authority: /home/ec2-user/enterprise-search-8.6.1/config/ca.pem
elasticsearch.ssl.verify: true
kibana.host: https://10.0.3.249:5601/
kibana.external_url: https://10.0.3.249:5601/
Please help me identify the issue. No idea what is that I am missing. The ES cluster has HTTP and TLS security. Kibana has HTTP security. All have same CA.