KAFKA CONNECT: aused by: java.security.cert.CertificateException: No name matching gpds-dev1-kafka-tls-bootstrap found at #7610
Replies: 4 comments 34 replies
-
org.apache.kafka.common.errors.SslAuthenticationException: SSL handshake failed |
Beta Was this translation helpful? Give feedback.
-
I did bit more reading and I am now passing the authentication: as well, I do not get any more error on certificate (probably its erroring before that ;-) ) or ssl handshake. but getting this error "org.apache.kafka.common.errors.TimeoutException: Timed out waiting to send the call. Call: fetchMetadata", org.apache.kafka.connect.errors.ConnectException: Failed to connect to and describe Kafka cluster. Check worker's broker connection and security properties. apiVersion: kafka.strimzi.io/v1beta2 spec: |
Beta Was this translation helpful? Give feedback.
-
I will try to upload full error stack in sometime |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
HI Thanks a lot for proving a such a wonderful platform and support.
And we are now LIVE with Strimzi in our PROD and a month and works like a charm.
Now the issue 👍🏽
KAFKA CR: where I am providing a certificate created by by PKI (and GOOGLE Cert ISSUER)
this works well for consumer to connect to us using CERT. But KAFKA CONNECT I am getting SSL exception,
My connect setup:
spec:
bootstrapServers: gpds-dev1-kafka-tls-bootstrap:9093
tls:
trustedCertificates:
- secretName: gpds-dev1-clients-ca-cert
certificate: ca.crt
this secret exist and it has ca.crt. This secret is created by the certificate sameway as I have created for brokerCertChainAndKey:
I am getting the SSL handshake error
org.apache.kafka.connect.errors.ConnectException: Failed to connect to and describe Kafka cluster. Check worker's broker connection and security properties. at org.apache.kafka.connect.util.ConnectUtils.lookupKafkaClusterId(ConnectUtils.java:70) at org.apache.kafka.connect.util.ConnectUtils.lookupKafkaClusterId(ConnectUtils.java:51) at org.apache.kafka.connect.cli.ConnectDistributed.startConnect(ConnectDistributed.java:97) at org.apache.kafka.connect.cli.ConnectDistributed.main(ConnectDistributed.java:80) Caused by: java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.SslAuthenticationException: SSL handshake failed at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395) at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1999) at org.apache.kafka.common.internals.KafkaFutureImpl.get(KafkaFutureImpl.java:165) at org.apache.kafka.connect.util.ConnectUtils.lookupKafkaClusterId(ConnectUtils.java:64) ... 3 more Caused by: org.apache.kafka.common.errors.SslAuthenticationException: SSL handshake failed Caused by: javax.net.ssl.SSLHandshakeException: No name matching gpds-dev1-kafka-tls-bootstrap found at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:352) at
Beta Was this translation helpful? Give feedback.
All reactions