I have enabled ssl encryption in my cassandra node and I am trying to figure out how to connect to my node using cqlsh with ssl:
When I run ./cqlsh --ssl
I get the following error:
Validation is enabled; SSL transport factory requires a valid certfile to be specified. Please provide path to the certfile in [ssl] section as 'certfile' option in /root/.cassandra/cqlshrc (or use [certfiles] section) or set SSL_CERTFILE environment variable.
I followed the link on https://docs.datastax.com/en/cassandra/2.1/cassandra/security/secureCqlshSSL_t.html:
[authentication]
username = fred
password = !!bang!!$
I am keeping in the root folder so that any user can login and can access the common folder (rather than in my user directory). However what would be the password in this case? Do I need to put my password?!
certfile = ~/keys/node0.cer.pem
Will I need to add this certfile to the cassandra's truststore, or can I just add cassandra nodes certificate itself?
I am using Cassandra 2.2.7.