I am hosting standalone elasticsearch on external server. Using certificate and login-password authentication. I am able to connect to it using browser or postman.
However when I try to do it, using python client it doesn't work. My connection code:
self.es = Elasticsearch(
address,
ca_certs=cert_path,
basic_auth=(user, password),
)
Error message:
elastic_transport.TlsError: TLS error caused by: TlsError(TLS error caused by: SSLError(hostname '34.116.***.***' doesn't match either of 'localhost', '172.19.0.2', '127.0.0.1', 'bde723133f75'))