address-index-data
address-index-data copied to clipboard
How to specify ca-cert or Fingerprint along with user/pass when calling Elasticsearch
The API for one of my Elasticsearch instances requires user ID, password and Cert fingerprint. I have appended Python code at the bottom that works on my ES instance.
But in the address-index-data project using the reference.conf or the application.conf I can only specify host, user, password. How do I specify Cert fingerprint?
_from elasticsearch import Elasticsearch
Password for the 'elastic' user generated by Elasticsearch
ELASTIC_PASSWORD = "---------------------" CERT_FINGERPRINT = "-------------------"
Create the client instance
client = Elasticsearch( "https://10.222.13.197:9200", ssl_assert_fingerprint=CERT_FINGERPRINT, basic_auth=("elastic", ELASTIC_PASSWORD) )_