Modifying your cqlshrc file

Connecting over SSL via cqlsh requires the use of the cqlshrc file. As indicated in the previous section, your cqlshrc file should be adjusted to reference the PEM file created in the prior step:

[connection]factory = cqlshlib.ssl.ssl_transport_factory[ssl]certfile = /home/aploetz/.cassandra/permanentWaves.pemvalidate = false

Along with specifying the PEM file in the [ssl] section, you will also need to specify whether the certificate should be validated at connection time. This feature is used for two-way SSL. Additionally, you will need to define factory in the [connection] section. Using the delivered ssl_transport_factory will suffice.

Get Mastering Apache Cassandra 3.x - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.