谷歌云上的KAFKA loadbalancer SSL端口出错
我在gcp上安装了一个卡夫卡集群。 我在端口9093上设置了SSL 以下是我的听众和广告听众的样子:谷歌云上的KAFKA loadbalancer SSL端口出错,ssl,apache-kafka,Ssl,Apache Kafka,我在gcp上安装了一个卡夫卡集群。 我在端口9093上设置了SSL 以下是我的听众和广告听众的样子: listeners=PLAINTEXT://host_ip:9092,SSL://host_ip:9093 advertised.listeners=SSL://hostname:9093 listener.security.protocol.map=PLAINTEXT:PLAINTEXT,SSL:SSL inter.broker.listener.name=SSL 在使用ssl端口和密钥在k
listeners=PLAINTEXT://host_ip:9092,SSL://host_ip:9093
advertised.listeners=SSL://hostname:9093
listener.security.protocol.map=PLAINTEXT:PLAINTEXT,SSL:SSL
inter.broker.listener.name=SSL
在使用ssl端口和密钥在kafka上生成或使用LB时,我得到以下错误:
原因:java.security.cert.CertificateException:未找到与LB_名称匹配的名称
./kafka-console-consumer.sh --bootstrap-server LB_NAME:9093 --topic test --from-beginning --consumer.config /var/tellme/kafka/ssl/client/client.properties
但是,使用主机名为9093的相同命令也可以正常工作
有没有办法使用主机名配置SSL并在Loadbalancer上使用