You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Robert Wagner <rw...@eruces.com> on 2013/09/05 20:10:59 UTC
Client SSL - cassandra-cli -OK, cqlsh -Problem
I am having a problem connecting via SSL using cqlsh. If I try with the
cassandra-cli command:
cassandra-cli -ts /etc/cassandra/conf/.truststore -tspw <password> -h
<host> -p 9160 -tf org.apache.cassandra.cli.transport.SSLTransportFactory
it connects fine. If I try with cqlshrc
[root@ccluster1 ~]# more .cqlshrc
[connection]
hostname = <host>
port = 9160
factory = cqlshlib.ssl.ssl_transport_factory
[ssl]
certfile = /bucket/cassandra/certs/myusercert.cer
validate = true ## Optional, true by default.
I get: Connection error: Could not connect to <host>:9160
I don't see a method for pointing to the truststore using the cqlshrc file
or providing the truststore password. Typically, the client has to trust
the server's SSL cert somehow. Maybe I am missing something in setting up
the client environment?
Robert Wagner