# Self-hosted Kafka with KRaft, SSL and SASL (scram-sha-256)

**URL:** <https://forum.confluent.io/t/self-hosted-kafka-with-kraft-ssl-and-sasl-scram-sha-256/8863>\
**Category:** Ops\
**Created:** [12 October 2023 11:37 UTC](https://forum.confluent.io/t/self-hosted-kafka-with-kraft-ssl-and-sasl-scram-sha-256/8863 "2023-10-12T11:37:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gschmutz](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/gschmutz/32/2989_2.png) [@gschmutz](https://forum.confluent.io/u/gschmutz)\
**Post date:** [14 October 2023 15:07 UTC](https://forum.confluent.io/t/self-hosted-kafka-with-kraft-ssl-and-sasl-scram-sha-256/8863/2 "2023-10-14T15:07:36Z")

</div>

Hi

I have more or less the same problem. Have tried to create a Kafka setup using Docker and SASL\_PLAINTEXT with SCRAM-SHA-256. It works for me if I only start a single broker, but if I start a 3 node cluster, I get the same error.

It works if I change the controller to use PLAINTEXT/PLAIN.

```auto
listener.security.protocol.map=CONTROLLER:PLAINTEXT,LOCAL:SASL_PLAINTEXT,BROKER:SASL_PLAINTEXT,DOCKERHOST:SASL_PLAINTEXT,EXTERNAL:SASL_PLAINTEXT
sasl.enabled.mechanisms=SCRAM-SHA-256
sasl.mechanism.inter.broker.protocol=SCRAM-SHA-256
sasl.mechanism.controller.protocol=PLAIN

```

---

_[View the full topic](https://forum.confluent.io/t/self-hosted-kafka-with-kraft-ssl-and-sasl-scram-sha-256/8863)._
