我希望为Cassandra开发准备服务器证书以进行客户端到节点的加密,但在运行命令时遇到以下问题:
我正在按照这些链接设置:
得到这个错误:
我正在按照这些链接设置:
https://docs.datastax.com/en/cassandra/3.0/cassandra/configuration/secureSSLClientToNode.html https://docs.datastax.com/en/cassandra/3.0/cassandra/configuration/secureSSLCertificates.html
当我运行以下命令时:keytool -export -alias cassandra -file node0.cer -keystore cassandra.keystore
我收到了这个错误:
keytool error: java.lang.Exception: Keystore file does not exist: cassandra.keystore
当运行以下命令时:
keytool -import -v -trustcacerts -alias node0 -file node0.cer -keystore truststore.node0
得到这个错误:
keytool error: java.io.FileNotFoundException: node0.cer (No such file or directory) java.io.FileNotFoundException: node0.cer (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at sun.security.tools.keytool.Main.doCommands(Main.java:1037)
at sun.security.tools.keytool.Main.run(Main.java:368)
at sun.security.tools.keytool.Main.main(Main.java:361)
我的操作系统是RS-Centos-7。
有人能帮忙吗?