Extended key usage does not permit use for TLS client authentication

Hi,

I am trying to upgrade kafka version from 3.3.1 t 3.7.1 and I am geeting error as below:

org.apache.kafka.common.config.ConfigException: Invalid value javax.net.ssl.SSLHandshakeException: Extended key usage does not permit use for TLS client authentication for configuration A client SSLEngine created with the provided settings can’t connect to a server SSLEngine created with those settings.
Aug 19 17:21:32 ub64506 docker[453852]: at org.apache.kafka.common.security.ssl.SslFactory.configure(SslFactory.java:102)
Aug 19 17:21:32 ub64506 docker[453852]: at org.apache.kafka.common.network.SslChannelBuilder.configure(SslChannelBuilder.java:73)
Aug 19 17:21:32 ub64506 docker[453852]: at org.apache.kafka.common.network.ChannelBuilders.create(ChannelBuilders.java:192)
Aug 19 17:21:32 ub64506 docker[453852]: at org.apache.kafka.common.network.ChannelBuilders.serverChannelBuilder(ChannelBuilders.java:107)
Aug 19 17:21:32 ub64506 docker[453852]: at kafka.network.Processor.(SocketServer.scala:921)
Aug 19 17:21:32 ub64506 docker[453852]: at kafka.network.Acceptor.newProcessor(SocketServer.scala:829)
Aug 19 17:21:32 ub64506 docker[453852]: at kafka.network.Acceptor.$anonfun$addProcessors$1(SocketServer.scala:799)
Aug 19 17:21:32 ub64506 docker[453852]: at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158)
Aug 19 17:21:32 ub64506 docker[453852]: at kafka.network.Acceptor.addProcessors(SocketServer.scala:798)
Aug 19 17:21:32 ub64506 docker[453852]: at kafka.network.DataPlaneAcceptor.configure(SocketServer.scala:502)
Aug 19 17:21:32 ub64506 docker[453852]: at kafka.network.SocketServer.createDataPlaneAcceptorAndProcessors(SocketServer.scala:228)
Aug 19 17:21:32 ub64506 docker[453852]: at kafka.network.SocketServer.$anonfun$new$31(SocketServer.scala:173)
Aug 19 17:21:32 ub64506 docker[453852]: at kafka.network.SocketServer.$anonfun$new$31$adapted(SocketServer.scala:173)
Aug 19 17:21:32 ub64506 docker[453852]: at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)
Aug 19 17:21:32 ub64506 docker[453852]: at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55)
Aug 19 17:21:32 ub64506 docker[453852]: at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49)
Aug 19 17:21:32 ub64506 docker[453852]: at kafka.network.SocketServer.(SocketServer.scala:173)
Aug 19 17:21:32 ub64506 docker[453852]: at kafka.server.BrokerServer.startup(BrokerServer.scala:241)
Aug 19 17:21:32 ub64506 docker[453852]: at kafka.server.KafkaRaftServer.$anonfun$startup$2(KafkaRaftServer.scala:139)
Aug 19 17:21:32 ub64506 docker[453852]: at kafka.server.KafkaRaftServer.$anonfun$startup$2$adapted(KafkaRaftServer.scala:139)
Aug 19 17:21:32 ub64506 docker[453852]: at scala.Option.foreach(Option.scala:407)
Aug 19 17:21:32 ub64506 docker[453852]: at kafka.server.KafkaRaftServer.startup(KafkaRaftServer.scala:139)
Aug 19 17:21:32 ub64506 docker[453852]: at kafka.Kafka$.main(Kafka.scala:109)