安全弹性搜索 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,如下所示:
- curl -k --tlsv1.1 -u USER:PASS https://localhost:9200(有效)
- curl -k --tlsv1.0 -u USER:PASS https://localhost:9200(失败)
我不知道如何强制 R 使用 TLSv1.1。
请协助。
以下是版本:
- R : 3.3.1
- 弹性搜索:2.4.1
- 海湾合作委员会:4.9.2
- OS:RHEL 6.7
- Openssl:1.0.1.e-fips 2013 年 2 月 11 日
在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
我使用 elastic 0.7.8
R 包连接到我的 Elastic Search
实例。
最近,我尝试使用 Search Guard 2
.
保护它后一切正常。 但是当我尝试从 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,如下所示:
- curl -k --tlsv1.1 -u USER:PASS https://localhost:9200(有效)
- curl -k --tlsv1.0 -u USER:PASS https://localhost:9200(失败)
我不知道如何强制 R 使用 TLSv1.1。
请协助。
以下是版本:
- R : 3.3.1
- 弹性搜索:2.4.1
- 海湾合作委员会:4.9.2
- OS:RHEL 6.7
- Openssl:1.0.1.e-fips 2013 年 2 月 11 日
在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