# How to connect to cassandra mTLS from logstash to source the data using keystore and truststore files?

**URL:** <https://discuss.elastic.co/t/how-to-connect-to-cassandra-mtls-from-logstash-to-source-the-data-using-keystore-and-truststore-files/383347>\
**Category:** Logstash\
**Created:** [November 10, 2025, 10:41pm UTC](https://discuss.elastic.co/t/how-to-connect-to-cassandra-mtls-from-logstash-to-source-the-data-using-keystore-and-truststore-files/383347 "2025-11-10T22:41:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Venkata9](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/venkata9/32/145654_2.png) [@Venkata9](https://discuss.elastic.co/u/Venkata9)\
**Post date:** [November 10, 2025, 10:41pm UTC](https://discuss.elastic.co/t/how-to-connect-to-cassandra-mtls-from-logstash-to-source-the-data-using-keystore-and-truststore-files/383347/1 "2025-11-10T22:41:58Z")

</div>

Hi Team, Need help with connecting to Cassandra with mTLS connectivity using keystore and truststore certificates to source the data from Cassandra.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 11, 2025, 1:39am UTC](https://discuss.elastic.co/t/how-to-connect-to-cassandra-mtls-from-logstash-to-source-the-data-using-keystore-and-truststore-files/383347/2 "2025-11-11T01:39:10Z")

</div>

As I understand it, you would use a jdbc input and all of the TLS stuff goes into the connection string, so that’s a JDBC question, not a logstash question.

---

<div class="post-metadata">

**Author:** ![Venkata9](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/venkata9/32/145654_2.png) [@Venkata9](https://discuss.elastic.co/u/Venkata9)\
**Post date:** [November 11, 2025, 7:24am UTC](https://discuss.elastic.co/t/how-to-connect-to-cassandra-mtls-from-logstash-to-source-the-data-using-keystore-and-truststore-files/383347/3 "2025-11-11T07:24:37Z")

</div>

We are experiencing connectivity failures with a 'bad\_certificate' error; we are unable to connect to Cassandra from Logstash. But we can connect to the same Cassandra using the same keystore and truststore from our Spark jobs. Please provide us with some reference links or downloadable links with the working version of Cassandra libraries and the JDBC connection string. We have been using Logstash for the past 5 years. We tried updating the version to Logstash 8.x and 9.x with Java 11, 17, 21 versions, also tried with encrypted and unencrypted keys.
