I am connecting a remote cluster from the local cluster. I got a connection time out error. Then I tried to curl the 9200 and 9300 port from the local cluster note to the remote cluster node. This is the response:
curl -X GET elastic:*** http://remotenode01ip:9200
{
"name" : "remotenode01",
"cluster_name" : "Remote-Elasticsearch",
"cluster_uuid" : "pdo**o-w",
"version" : {
"number" : "8.8.1",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "f8edfccba429b6477927a7c1ce1bc6729521305e",
"build_date" : "2023-06-05T21:32:25.188464208Z",
"build_snapshot" : false,
"lucene_version" : "9.6.0",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}
curl -X GET -k -u elastic:*** https://remotenode01ip:9300
curl: (56) OpenSSL SSL_read: error:0A000412:SSL routines::sslv3 alert bad certificate, errno 0
I have set up the same CA for the local and remote cluster xpack.security.transport.ssl.
What else should I set up to connect 9300 port?
Thank you.