安全弹性搜索 R 连接错误 - 客户端请求的协议 TLSv1 未启用或不受支持

Secured Elastic Search R connection Error - Client requested protocal TLSv1 not enabled or not supported

我使用 elastic 0.7.8 R 包连接到我的 Elastic Search 实例。 最近,我尝试使用 Search Guard 2.

来保护 Elastic Search

保护它后一切正常。 但是当我尝试从 R 连接时,它失败了。

library(elastic)
connect(es_base = "https://localhost", es_port = 9200, es_user = USER, es_pwd = PASS)

日志中的错误是"Client requested protocal TLSv1 not enabled or not supported"

我尝试使用 cURL 连接到 Elastic Search,如下所示:

我不知道如何强制 R 使用 TLSv1.1。

请协助。

以下是版本:

在elasticsearch.yml中简单设置

searchguard.ssl.http.enabled_protocols:
  - "TLSv1.2"
  - "TLSv1.1"
  - "TLSv1"

另见 https://github.com/floragunncom/search-guard-ssl/blob/master/searchguard-ssl-config-template.yml