# How to connect kafka-topics to brokers

**URL:** <https://forum.confluent.io/t/how-to-connect-kafka-topics-to-brokers/7627>\
**Category:** Clients\
**Created:** [14 April 2023 06:33 UTC](https://forum.confluent.io/t/how-to-connect-kafka-topics-to-brokers/7627 "2023-04-14T06:33:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![niks7392](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@niks7392](https://forum.confluent.io/u/niks7392)\
**Post date:** [14 April 2023 06:33 UTC](https://forum.confluent.io/t/how-to-connect-kafka-topics-to-brokers/7627/1 "2023-04-14T06:33:21Z")

</div>

Kafka version

```auto
kafka % ./bin/kafka-broker-api-versions.sh --bootstrap-server localhost:9092 --version
3.4.0 (Commit:2e1947d240607d53)

```

Command i used to connect to broker which has ssl enabled  
`kafka % ./bin/kafka-topics.sh --bootstrap-server localhost:9090 --list`

Error logs on broker:

```auto
INFO [SocketServer listenerType=ZK_BROKER, nodeId=0] Failed authentication with /localhost (channelId=localhost9090-localhost:49548-0) (SSL handshake failed) (org.apache.kafka.common.network.Selector)

```

do i have to keep a diffrent listener which will accept clients with plaintext ? i didn’t found anything whether the kafka-topics ssl in implemented or not i am just new in kafka , i only know that previously it used to connect with zookeeper

---

<div class="post-metadata">

**Author:** ![bbejeck](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/bbejeck/32/412_2.png) [@bbejeck](https://forum.confluent.io/u/bbejeck)\
**Post date:** [14 April 2023 17:41 UTC](https://forum.confluent.io/t/how-to-connect-kafka-topics-to-brokers/7627/2 "2023-04-14T17:41:28Z")

</div>

Hi,

In the second command, you use `localhost:9090` vs `localhost:9092`  
The default port for Kafka is `9092`.

---

<div class="post-metadata">

**Author:** ![niks7392](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@niks7392](https://forum.confluent.io/u/niks7392)\
**Post date:** [15 April 2023 13:04 UTC](https://forum.confluent.io/t/how-to-connect-kafka-topics-to-brokers/7627/3 "2023-04-15T13:04:13Z")

</div>

yes, i know , but i have configured server properties with sasl\_ssl

my server-0.properties :

```auto
listeners=SASL_SSL://localhost:9090,PLAINTEXT://localhost:9093

```

and when i try to connect with PLAINTEXT PORT i get :

```auto
> .\bin\windows\kafka-topics.bat --bootstrap-server localhost:9093 --list
Error while executing topic command : Timed out waiting for a node assignment. Call: listTopics
[2023-04-15 18:26:27,625] ERROR org.apache.kafka.common.errors.TimeoutException: Timed out waiting for a node assignment. Call: listTopics
 (kafka.admin.TopicCommand$)

```

is there any ssl security yet in kafka-topics ? i didnt found any docs, article related kafka-topics security

---

<div class="post-metadata">

**Author:** ![OneCricketeer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/onecricketeer/32/1551_2.png) [@OneCricketeer](https://forum.confluent.io/u/OneCricketeer)\
**Post date:** [16 May 2023 00:11 UTC](https://forum.confluent.io/t/how-to-connect-kafka-topics-to-brokers/7627/4 "2023-05-16T00:11:53Z")

</div>

> [@niks7392](#):
>
> any ssl security yet in kafka-topics

Yes. use `--command-config` flag and provide SSL/SASL properties with a file.
