配置KAFKA双向SSL后,协议仍然是TCP

发布于 2025-02-08 14:36:21 字数 398 浏览 1 评论 0 原文

在配置使用双向SSL的KAFKA(KAFKA_2.13-2.4.1)之后,根据文档,当由kafka-console-producer.sh发送消息时,可以由消费者(Kafka-Console-Consumer.sh)接收消息。 但是,当使用TCPDUMP捕获网络流量时,该协议仍然是TCP,而不是TLSOR SSL。

将-djava.net.debug添加到kafka-console-producer.sh时,可以打印双向SSL握手(从Clienthello到Server finishng)。

为什么我无法获得TSL协议?是错误的吗?

After configured the kafka (kafka_2.13-2.4.1) with two-way SSL per the document https://kafka.apache.org/documentation/#security_ssl, when sent message by the kafka-console-producer.sh, the message can be received by consumer (kafka-console-consumer.sh).
But when use the tcpdump capture the network traffic, the protocol still is TCP, not TLSor SSL.

When added the -Djava.net.debug to the kafka-console-producer.sh, the two-way SSL handshakes can be printed (from ClientHello to server finishng).

Why I cannot get the tsl protocol? Is it wrong way?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文