ibm-messaging / event-streams-samples

Apache License 2.0
95 stars 168 forks source link

Kafka Connect REST API Security #69

Closed billwenboli closed 4 years ago

billwenboli commented 4 years ago

I was trying to follow the documentation here to set up SSL encryption for Kafka Connect REST API. Has anyone successfully configured https with SSL certificates as explained in the documentation? I tried many combinations of possible values for the following parameters, but none of them worked.

listeners=https://myhost:8443
rest.advertised.listener=https
rest.advertised.host.name=<localhost>
rest.advertised.host.port=8083
listeners.https.ssl.client.auth=requested
listeners.https.ssl.truststore.location=/var/ssl/private/kafka.server.truststore.jks
listeners.https.ssl.truststore.password=test1234
listeners.https.ssl.keystore.location=/var/ssl/private/kafka.server.keystore.jks
listeners.https.ssl.keystore.password=test1234
listeners.https.ssl.key.password=test1234
billwenboli commented 4 years ago

It turns out that this set of configuration works on docker images confluentinc/cp-base and openjdk:8. It currently does work on ibmjava:jre-8 and ibmjava:sdk-8.