Getting error : Failed to load SSL keystore /tmp/client.truststore.p12 of type PKCS12, when trying to produce messages, and kafka cluster has TLS enabled. #4997
Unanswered
Gulnaz2021
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I think you need to describe how did you created the truststore / keystore files. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
When am trying to produce message using the below command getting error:
org.apache.kafka.common.KafkaException: Failed to construct kafka producer
at org.apache.kafka.clients.producer.KafkaProducer.(KafkaProducer.java:432)
at org.apache.kafka.clients.producer.KafkaProducer.(KafkaProducer.java:298)
at kafka.tools.ConsoleProducer$.main(ConsoleProducer.scala:45)
at kafka.tools.ConsoleProducer.main(ConsoleProducer.scala)
Caused by: org.apache.kafka.common.KafkaException: org.apache.kafka.common.KafkaException: org.apache.kafka.common.KafkaException: Failed to load SSL keystore /tmp/client.truststore.p12 of type PKCS12
at org.apache.kafka.common.network.SslChannelBuilder.configure(SslChannelBuilder.java:71)
at org.apache.kafka.common.network.ChannelBuilders.create(ChannelBuilders.java:146)
at org.apache.kafka.common.network.ChannelBuilders.clientChannelBuilder(ChannelBuilders.java:67)
at org.apache.kafka.clients.ClientUtils.createChannelBuilder(ClientUtils.java:99)
at org.apache.kafka.clients.producer.KafkaProducer.newSender(KafkaProducer.java:450)
at org.apache.kafka.clients.producer.KafkaProducer.(KafkaProducer.java:421)
... 3 more
Command used to produce the message:
./bin/kafka-console-producer.sh --broker-list upgrade-cluster-kafka-bootstrap.do-qa-kafka.svc.cluster.local:9093 --topic topic1 \
Kafka cluster listener configs:
listeners:
external:
authentication:
type: tls
tls: true
type: loadbalancer
plain: {}
tls:
authentication:
type: tls
authorization:
type: simple
Strimzi operator version 17, application version 2.4.0
Can I please get some help in this regard.
Beta Was this translation helpful? Give feedback.
All reactions