SSL

If your cluster uses SSL, there are a few different ways to specify the keystore holding your SSL certificate. The easiest is to simply add it to your JRE's cacerts file.

You can also set a specific Java keystore and its password via Java Secure Socket Extension (JSSE) properties:

-Djavax.net.ssl.keyStore=/usr/local/myfiles/.keystore-Djavax.net.ssl.keyStorePassword=reindeerFlotilla

Once this is complete, you can simply invoke SSL as a part of your cluster builder:

.withSSL()

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.