简体   繁体   English

Cassandra:如何设置节点到节点加密?

[英]Cassandra: how to setup node-to-node encryption?

Cassandra supports both client-node encryption and node-node encryption. Cassandra支持客户端节点加密和节点 - 节点加密。 It seems like the client-node encryption is simple to setup. 似乎客户端节点加密很容易设置。

Now that i have finished setting up client-node, i was trying out the node-node encryption and am curious about a couple of things. 现在我已经完成了客​​户端节点的设置,我正在尝试节点 - 节点加密,并对一些事情感到好奇。

  1. The example here ( http://www.datastax.com/docs/datastax_enterprise3.1/security/ssl_certs#ssl-certs ) uses different certificates for different nodes. 此处的示例( http://www.datastax.com/docs/datastax_enterprise3.1/security/ssl_certs#ssl-certs )对不同的节点使用不同的证书。 Is this compulsory? 这是强制性的吗?

  2. Can I use the sample SSL certificate for every node rather than generating a new certificate for each node? 我是否可以为每个节点使用示例SSL证书,而不是为每个节点生成新证书?

The example here ( http://www.datastax.com/docs/datastax_enterprise3.1/security/ssl_certs#ssl-certs ) uses different certificates for different nodes. 此处的示例( http://www.datastax.com/docs/datastax_enterprise3.1/security/ssl_certs#ssl-certs )对不同的节点使用不同的证书。 Is this compulsory? 这是强制性的吗?

It is considered best practice to give each node it's own identifying certificate, but it is not required. 最佳做法是为每个节点提供自己的标识证书,但这不是必需的。

Can I use the sample SSL certificate for every node rather than generating a new certificate for each node? 我是否可以为每个节点使用示例SSL证书,而不是为每个节点生成新证书?

Yes you could, but what I would do is create your own Certificate Authority and then generate all of your certificates signed by that Authority (see this for how to do it using keytool). 是的,你可以,但我会做的是创建自己的证书颁发机构,然后生成所有由该机构签署的证书(见关于如何使用密钥工具来做到这一点)。 This way you only have to trust the certificate authority on your cassandra nodes so you can add more nodes without having to update your trust stores on every cassandra node. 这样,您只需要信任cassandra节点上的证书颁发机构,这样就可以添加更多节点,而无需在每个cassandra节点上更新信任存储。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Cassandra节点到节点和客户端到节点加密实际上如何工作? - How does Cassandra node-to-node and client-to-node encryption actually work? Cassandra:如何设置客户端到节点加密? - Cassandra: how to setup client-to-node encryption? Cassandra节点间加密是否可以选择通信? - Is Optional Traffic Possible For Cassandra Inter-node Encryption? 如何使用DataStax Java驱动程序设置Cassandra客户端到节点加密? - How to set up Cassandra client-to-node encryption with the DataStax Java driver? 如何将人偶主节点设置为节点 - How to setup puppet master as a node 开启cassandra节点间加密会导致“无法散播任何种子”异常 - Turning cassandra inter-node encryption on causes “Unable to gossip with any seeds” exception 想要的:有关将启用客户端节点加密的Cassandra集群添加到DataStax OpsCenter 5.1.0的说明 - Wanted: Instructions for adding client-node encryption enabled Cassandra cluster to DataStax OpsCenter 5.1.0 如何使用Cassandra的Node.js驱动程序配置sslOptions? - How to configure sslOptions using Node.js driver for Cassandra? 如何在node express socket.io下设置SSL? - How to setup SSL under node express socket.io? 如何使用任何Node JS模块将Kafka使用者与SSL设置连接起来 - How to connect Kafka consumer with SSL setup with any of Node JS modules
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM