【发布时间】:2023-03-29 19:31:01
【问题描述】:
我有一个启用了客户端节点加密的 Cassandra 集群。我正在尝试将此集群添加到 OpsCenter 5.1.0 的实例,但它无法连接到集群。日志文件似乎抱怨无法验证 SSL 证书:
` 信息:在 0x7f2ce05c8638> 启动工厂 opscenterd.ThriftService.NoReconnectCassandraClientFactory 实例> 2015-06-10 15:09:46+0000 [] 警告:无法验证 ssl 证书。 2015-06-10 15:09:46+0000 [] 未处理的错误 回溯(最近一次通话最后): 文件“/opt/opscenter-5.1.0/lib/py-debian/2.7/amd64/twisted/python/log.py”,第 84 行,在 callWithLogger 返回 callWithContext({"system": lp}, func, *args, **kw) 文件“/opt/opscenter-5.1.0/lib/py-debian/2.7/amd64/twisted/python/log.py”,第 69 行,在 callWithContext return context.call({ILogContext: newCtx}, func, *args, **kw) 文件“/opt/opscenter-5.1.0/lib/py-debian/2.7/amd64/twisted/python/context.py”,第 59 行,在 callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) 文件“/opt/opscenter-5.1.0/lib/py-debian/2.7/amd64/twisted/python/context.py”,第 37 行,在 callWithContext 返回函数(*args,**kw) --- 此处捕获异常 --- _doReadOrWrite 中的文件“/opt/opscenter-5.1.0/lib/py-debian/2.7/amd64/twisted/internet/epollreactor.py”,第 217 行 为什么 = selectable.doRead() 文件“/opt/opscenter-5.1.0/lib/py-debian/2.7/amd64/twisted/internet/tcp.py”,第 137 行,在 doRead 返回 Connection.doRead(self) 文件“/opt/opscenter-5.1.0/lib/py-debian/2.7/amd64/twisted/internet/tcp.py”,第 452 行,在 doRead 数据 = self.socket.recv(self.bufferSize) ssl_simple_verifyCB 中的文件“build/lib/python2.7/site-packages/opscenterd/SslUtils.py”,第 12 行 opscenterd.Utils.SSLVerifyException: SSL certificate invalid
我的问题是:向 opscenter 添加客户端节点加密集群的分步说明是什么? 究竟需要哪些 .pem 和 .keystore 文件,我该如何获取它们?
关于该主题的 DataStax 文档不够详细,因此没有真正的帮助。我认为那里的某些人一定已经成功地进行了设置,我相信许多人会喜欢详细的解释/说明。
【问题讨论】:
标签: ssl encryption cassandra datastax opscenter