Kafka SSL 握手失败问题

编程入门 行业动态 更新时间:2024-10-25 20:17:19
本文介绍了Kafka SSL 握手失败问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试在我的 Kafka 服务器上启用 SSL 身份验证.我正在关注 Kafka 文档中的 7.2 部分.

I am trying to enable SSL Authentication on my Kafka server. I am following 7.2 section in the Kafka documentation.

按照所有步骤操作,但是在调用 producer.bat 文件将数据发送到主题时,我收到以下错误.

Followed all steps, but while calling the producer.bat file to send data in to the topic i get below error.

错误 [Producer clientId=console-producer] 连接到节点 -1 的身份验证失败,原因是:SSL 握手失败 (org.apache.kafka.clients.NetworkClient)

ERROR [Producer clientId=console-producer] Connection to node -1 failed authentication due to: SSL handshake failed (org.apache.kafka.clients.NetworkClient)

原因: java.security.cert.CertificateException:找不到与本地主机匹配的名称

Caused by: java.security.cert.CertificateException: No name matching localhost found

我确实使用 CN=localhost 创建了证书.

I did create the certificate with CN=localhost.

推荐答案

可以通过在客户端将 ssl.endpoint.identification.algorithm 设置为空字符串来禁用服务器主机名验证.

The server host name verification may be disabled by setting ssl.endpoint.identification.algorithm to an empty string on the client.

更多推荐

Kafka SSL 握手失败问题

本文发布于:2023-06-02 14:48:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/447363.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Kafka   SSL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!