grepplabs / kafka-proxy

Proxy connections to Kafka cluster. Connect through SOCKS Proxy, HTTP Proxy or to cluster running in Kubernetes.
Apache License 2.0
501 stars 87 forks source link

TLS Handshake Error with auth-ldap #55

Closed ashishgidh closed 4 years ago

ashishgidh commented 4 years ago

Hi @gustavomcarmo

I tried your suggestion and tests with TLS and auth-ldap. All works fine without TLS but I'am getting a handshake error. Not sure what is missing.

Here are my details in case you can catch it for us (attaching error.txt) error.txt

Any help is highly appreciated. Thanks.

===================================

everesio commented 4 years ago

This look like a problem with certificates. How does the openssl.conf look like ? What is the output of

ashishgidh commented 4 years ago
  • openssl s_client -connect localhost:9092 | openssl x509 -text

===============

Thanks @everesio

Here is the openssl.conf openssl.conf.txt

also attaching the two commands you suggested. log2.txt log1.txt

$ openssl s_client -connect localhost:9092 | openssl x509 -text > log2.txt Can't use SSL_get_servername depth=0 C = US, ST = New Jersey, L = NJ, O = chubb, OU = Architecture Shared Service verify error:num=18:self signed certificate verify return:1 depth=0 C = US, ST = New Jersey, L = NJ, O = chubb, OU = Architecture Shared Service verify return:1

everesio commented 4 years ago

You are connecting with tls to localhost, but you cert does not return Common Name = localhost Cert returned by the proxy should provide sth like

Subject: CN = localhost, C = US, ST = New Jersey, L = NJ, O = chubb, OU = Architecture Shared Service

ashishgidh commented 4 years ago

You are connecting with tls to localhost, but you cert does not return Common Name = localhost Cert returned by the proxy should provide sth like

Subject: CN = localhost, C = US, ST = New Jersey, L = NJ, O = chubb, OU = Architecture Shared Service

Oh thanks a lot. Let me try.

ashishgidh commented 4 years ago

Certificate issue.