Before explaining the issue which I'm facing, I will let you know the verified points from my local machine.
- I have all the Cassandra related configuration and I have the required privileges (access) to my machine .
I'm able to connect the Cassandra node which is SSL disabled or the node which is TLS disabled through
cqlsh
.- E.g I'm able to connect to below C* node with the below command
cqlsh -u xxxxx -p xxxxxx 123.abc.com
- But at the same time I'm not able to connect to the below node with option SSL
cqlsh --ssl -u xxxxx -p xxxxxx 123.xyz.com
Below is my content of cqlshrc file:
[Authentication] Usename = xxxx password = xxxx [connection] hostname = 123.xyz.com port = 9042 factory = cqlshlib.ssl.ssl_transport_factory [ssl] certfile=~/certfiles/xyz.pem validate = false
Even I tried setting the certFile path as an environment variable.
I'm getting the below exception:
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 /XXXX/XXXXX/.cassandra/cqlshrc (or use [certfiles] section) or set SSL_CERTFILE environment variable.