# C# - Connecting to broker with keystore.jks and truststore.jks

**URL:** <https://forum.confluent.io/t/c-connecting-to-broker-with-keystore-jks-and-truststore-jks/3423>\
**Category:** Non-Java Clients\
**Created:** [17 November 2021 16:24 UTC](https://forum.confluent.io/t/c-connecting-to-broker-with-keystore-jks-and-truststore-jks/3423 "2021-11-17T16:24:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![canderson](https://avatars.discourse-cdn.com/v4/letter/c/fbc32d/32.png) [@canderson](https://forum.confluent.io/u/canderson)\
**Post date:** [17 November 2021 16:24 UTC](https://forum.confluent.io/t/c-connecting-to-broker-with-keystore-jks-and-truststore-jks/3423/1 "2021-11-17T16:24:03Z")

</div>

I’ve been given keystore.jks and truststore.jks files to connect to a broken. I have used them successfully to connect using a sample Java application (using the Confluent library, I believe), so I know the certs are good. I can’t figure out how to connect to the same broker using the C# library. There are ConsumerConfig properties for the Keystore location and password, but nothing for the truststore.

How can I do this?

I found this github issue ([[Question] Why is there no ssl.truststore option in config? · Issue #941 · confluentinc/confluent-kafka-dotnet · GitHub](https://github.com/confluentinc/confluent-kafka-dotnet/issues/941)) from a couple years ago that is asking the same question as I have, but I’m not following the solution correctly.

Are there step by step instructions on what steps to take in my situation?
