【发布时间】:2017-03-03 22:18:16
【问题描述】:
我在我的 cassandra 节点中启用了 ssl 加密,我正在尝试弄清楚如何使用带有 ssl 的 cqlsh 连接到我的节点:
当我运行 ./cqlsh --ssl 时,我收到以下错误:
Validation is enabled; SSL transport factory requires a valid certfile to be specified. Please provide path to the certfile in [ssl] section as 'certfile' option in /root/.cassandra/cqlshrc (or use [certfiles] section) or set SSL_CERTFILE environment variable.
我点击了https://docs.datastax.com/en/cassandra/2.1/cassandra/security/secureCqlshSSL_t.html上的链接:
[authentication]
username = fred
password = !!bang!!$
我保留在根文件夹中,以便任何用户都可以登录并访问公共文件夹(而不是在我的用户目录中)。但是,在这种情况下,密码是什么?我需要输入密码吗?!
certfile = ~/keys/node0.cer.pem
我是否需要将此证书文件添加到 cassandra 的信任库,或者我可以只添加 cassandra 节点证书本身吗?
我正在使用 Cassandra 2.2.7。
【问题讨论】:
标签: ssl cassandra datastax cqlsh