I regenerated the cacerts and now I am able to get the response from postman client and also curl.
elasticsearch:
curl -X GET -u elastic:xxx --key /usr/share/elasticsearch/config/certs/elasticsearch.key --cert /usr/share/elasticsearch/config/certs/elasticsearch.crt --cacert /usr/share/elasticsearch/config/root/rootCA.crt https://elasticsearch:9200
Enter PEM pass phrase:
{
"name" : "elasticsearch",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "Ewq-9mZ8TyyZycn6g2lQ2g",
"version" : {
"number" : "8.14.0",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "8d96bbe3bf5fed931f3119733895458eab75dca9",
"build_date" : "2024-06-03T10:05:49.073003402Z",
"build_snapshot" : false,
"lucene_version" : "9.10.0",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}
Kibana:
curl -X GET -u kibana_system:xxx --key /usr/share/kibana/config/certs/kibana.key --cert /usr/share/kibana/config/certs/kibana.crt --cacert /usr/share/kibana/config/certs/root/rootCA.crt https://elasticsearch:9200
Enter PEM pass phrase:
{
"name" : "elasticsearch",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "Ewq-9mZ8TyyZycn6g2lQ2g",
"version" : {
"number" : "8.14.0",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "8d96bbe3bf5fed931f3119733895458eab75dca9",
"build_date" : "2024-06-03T10:05:49.073003402Z",
"build_snapshot" : false,
"lucene_version" : "9.10.0",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}
But in the kibana container console I am seeing this issue and also when I tried accessing the https://localhost:5601 throwing the below err
Kibana server is not ready yet.
Kibana console log
2025-03-27 11:29:46 [2025-03-27T05:59:46.340+00:00][ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. error:1C800064:Provider routines::bad decrypt
2025-03-27 11:29:47 [2025-03-27T05:59:47.558+00:00][INFO ][plugins.screenshotting.chromium] Browser executable: /usr/share/kibana/node_modules/@kbn/screenshotting-plugin/chromium/headless_shell-linux_x64/headless_shell`
`
Any suggestion on this .
Thanks