Skip to Content
Mastering Apache Cassandra 3.x - Third Edition
book

Mastering Apache Cassandra 3.x - Third Edition

by Aaron Ploetz, Tejaswi Malepati
October 2018
Beginner to intermediate content levelBeginner to intermediate
348 pages
10h
English
Packt Publishing
Content preview from Mastering Apache Cassandra 3.x - Third Edition

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.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Apache Cassandra - Second Edition

Mastering Apache Cassandra - Second Edition

Nishant Neeraj

Publisher Resources

ISBN: 9781789131499Supplemental Content