elasticsearch,ssl,Python,elasticsearch,Ssl" /> elasticsearch,ssl,Python,elasticsearch,Ssl" />

此Python elasticsearch SSL错误是否意味着传输完整性受到损害:“;使用“ssl”上下文时,将忽略所有其他与ssl相关的KWARG;?

此Python elasticsearch SSL错误是否意味着传输完整性受到损害:“;使用“ssl”上下文时,将忽略所有其他与ssl相关的KWARG;?,python,elasticsearch,ssl,Python,elasticsearch,Ssl,我已将SSL连接配置到我的弹性云群集,因此: # SSL client authentication using client_cert and client_key - as per https://elasticsearch-py.readthedocs.io/en/master/ context = create_default_context (cafile=<path to .pem file>) # connect to the Elasticsearch conta

我已将SSL连接配置到我的弹性云群集,因此:

# SSL client authentication using client_cert and client_key - as per https://elasticsearch-py.readthedocs.io/en/master/

context = create_default_context (cafile=<path to .pem file>)

# connect to the Elasticsearch container

es =\
    Elasticsearch([<path to elasticsearch host>],\
                  http_auth=(<user>, <pword>), scheme="https", ssl_context=context)
print("Connected to the Elasticsearch server")
#使用客户端证书和客户端密钥的SSL客户端身份验证-根据https://elasticsearch-py.readthedocs.io/en/master/
context=创建\默认\上下文(cafile=)
#连接到Elasticsearch容器
es=\
Elasticsearch([]\
http_auth=(,),scheme=“https”,ssl_context=context)
打印(“连接到Elasticsearch服务器”)
当我运行脚本时,我没有收到错误,但我确实收到以下警告:

UserWarning:使用“ssl\U上下文”时,将忽略所有其他与ssl相关的KWARG

我做了一些研究,似乎表明这个警告可以忽略。具体地说,这表明“警告是错误的,因为我们只设置了ssl_上下文参数,而没有其他设置。”

我对将SSL集成到Python脚本/elasticsearch中非常陌生。我的问题是,我的连接看起来正常吗?这个警告可以忽略吗


提前感谢es.ping()的输出是什么?@Lupanoide-“True”,这样您就可以使用该ssl配置ping您的es服务器了。您可以使用es对其进行查询object@Lupanoide-是的,没错,我可以写入es群集。但这种传输配置正确且安全吗?谢谢