Hi Team,
I want to connect Eleasticsearch 6.8.0 via TransportClient vs 6.8.0, while connecting transport client I am getting below error on elasticsearch -
[2019-06-05T15:52:56,827][WARN ][o.e.x.c.s.t.n.SecurityNetty4Transport] [node-1] client did not trust this server's certificate, closing connection Ne
tty4TcpChannel{localAddress=0.0.0.0/0.0.0.0:9300, remoteAddress=/10.2.242.185:58362}
I want to use file/native security by basic license mode. Below are configuration used in elasticsearch.yml -
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: certs/certificate.p12
xpack.security.transport.ssl.truststore.path: certs/certificate.p12
xpack.license.self_generated.type: basic
Also below are properties added in JAVA client program -
TransportClient client = new PreBuiltXPackTransportClient(Settings.builder()
.put("cluster.name", "myClusterName")
.put("xpack.security.user", "test_user:x-pack-test-password")
.put("xpack.ssl.certificate_authorities", "/path/to/ca.crt")
.put("xpack.security.transport.ssl.enabled", "true")
I am using company/organization provided P12 trustore/keystore.
I am able to successfully connect Logstash and Kibana with basic userid and password. But not able to connect our client program to elasticsearch.
Basically we want to connect our client transport program like-wise kibana and logstash are connected with different urserid and role.
We are not looking for SSL connectivity between transport client, we want to connect it via HTTP communication with userid and password.
Please let us know, if we have missed any configuration.