Securing Kafka Connect - REST API with https

試著忘記壹切 提交于 2021-02-11 12:42:45

问题


I'm trying to secure the REST endpoint in kafka connect with https.

Below is my config in connect.distributed.properties file,

I created self-signed certificate in my Linux VM,

listeners=https://myhostname.xxxxx.xx.com:8085

listeners.https.ssl.keystore.location=/home/kafka/server.keystore.jks
listeners.https.ssl.keystore.password=*******
listeners.https.ssl.key.password=******
listeners.https.ssl.truststore.location=/home/kafka/server.truststore.jks
listeners.https.ssl.truststore.password=******
listeners.https.ssl.client.auth=required

In connect.log , i see my listeners specific ssl properties are ignored as unknown config.. and when i try to open my rest endpoint in web browser using https, i get SSL error.

Error in web browser,

myhostname.xxxxx.xx.com uses an unsupported protocol.
ERR_SSL_VERSION_OR_CIPHER_MISMATCH

Error in connect.log,

[2020-08-01 17:36:42,705] WARN The configuration 'listeners.https.ssl.keystore.location' was supplied but isn't a known config. (org.apache.kafka.clients.admin.AdminClientC
onfig:355)

Any thoughts/suggestions on what i'm missing here?

来源:https://stackoverflow.com/questions/63231323/securing-kafka-connect-rest-api-with-https

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!