Cassandra 2.0.3 client-server error [TSocket reads 0 bytes]

I want to enable authorization, authentication, client / server encryption, and firewall encryption in Cassandra 2.0.3. Unfortunately, this does not seem to be happening, because all security configurations work fine, but when I turn on “Client / server encryption” and connect to cqlsh I get error “Connection error: TSocket read 0 bytes" ..

Someone please help how is this possible? if not, why? How does this Client / Server encryption work almost on the local host?

+4
source share
1 answer

You must correctly configure CQLSH to use SSL.

http://www.datastax.com/documentation/cassandra/2.0/cassandra/security/secureCqlshSSL_t.html

, , cqlshrc:

[connection]
hostname = 127.0.0.1
port = 9160
factory = cqlshlib.ssl.ssl_transport_factory

[ssl]
certfile = ~/keys/cassandra.cert
+3

Source: https://habr.com/ru/post/1530539/


All Articles