我試圖通過Python從我的本地主機訪問ElasticSearch AWS(我可以通過我的瀏覽器訪問它)。無法通過Python訪問ElasticSearch AWS
from elasticsearch import Elasticsearch
ELASTIC_SEARCH_ENDPOINT = 'https://xxx'
es = Elasticsearch([ELASTIC_SEARCH_ENDPOINT])
我收到此錯誤:
ImproperlyConfigured('Root certificates are missing for certificate validation. Either pass them in using the ca_certs parameter or install certifi to use it automatically.',)
我怎樣才能訪問它?我沒有配置任何證書,我只解放了可以訪問ElasticSearch服務的IP。