Hello.
I run my elasticsearch via docker compose and i set ssl security for it and now i want to connect Elasticsearch from remote server
when i curl -X GET -u user:pass -k https://serverIP:9200/_cat/indices
i can see all my indices and also i have telnet connection but when i try to connect with python
client = Elasticsearch(
['https://user:pass@serverIP:9200'],
api_key="E0-"
)
I get the following error:
TlsError: TLS error caused by: TlsError(TLS error caused by: SSLError([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)))
and when i tried to use container name instead of server ip i get
ConnectionError: Connection error caused by: ConnectionError(Connection error caused by: NewConnectionError(<elastic_transport._node._urllib3_chain_certs.HTTPSConnection object at 0x>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution))
and how can i set cert path for it?
Thanks