【发布时间】:2014-02-24 17:17:35
【问题描述】:
我正在尝试在我的 DSE 服务器中启用客户端到节点的 SSL 加密。
我的 cqlshrc 文件如下所示
[connection]
hostname = 127.0.0.1
port = 9160
factory = cqlshlib.ssl.ssl_transport_factory
[ssl]
certfile = /path/to/dse_node0.cer
validate = true ;; Optional, true by default.
[certfiles] ;; Optional section, overrides the default certfile in the [ssl] section.
1.2.3.4 = /path/to/dse_node0.cer
当我尝试登录 cqlsh shell 时出现以下错误
Connection error: Could not connect to 127.0.0.1:9160
【问题讨论】:
-
是您的 cassandra.yaml 中的 rpc_address 参数设置为 127.0.0.1 以外的值(例如主机的 IP 地址?)如果是这样,您应该在 cqlshrc 的主机名设置中使用它
-
rpc_address 设置为 0.0.0.0
-
您自己找到解决方案了吗?我会感兴趣...
-
只有在 ssl 选项中设置 validate = false 时才有效。
标签: cassandra datastax-enterprise datastax cqlsh