elastic / elastic-transport-python

Transport classes and utilities shared among Python Elastic client libraries
https://elastic-transport-python.readthedocs.io
Apache License 2.0
20 stars 13 forks source link

Allow server_hostname in the Elasticsearch client #44

Open kendraschwartz opened 4 years ago

kendraschwartz commented 4 years ago

Please allow the Elasticsearch client to specify server_hostname. I want to use ip addresses and still have ssl verification work.

dadoonet commented 4 years ago

You opened the question at https://discuss.elastic.co/t/ask-for-advice-on-elastic-search-client/239178 which is the right place to ask before opening an issue here.

sethmlarson commented 4 years ago

Would like to know more about why you explicitly need SNI to be sent when connecting to a service via IP (over explicitly specifying the host you're verifying against for example).

kendraschwartz commented 4 years ago

I don't need SNI over verifying the host. I'm not familiar the Elasticsearch client. The request probably doesn't make sense.

kendraschwartz commented 4 years ago

I don't know what you mean by verifying the host. I can't use hostname verification because the certificate does not match the ip address.