Spring Kafka SSL setup in Spring boot application.yml

后端 未结 2 1676
慢半拍i
慢半拍i 2021-01-03 10:18

I am trying to setup a Spring Boot Application with a Kafka Client to use SSL. I have my keystore.jks and truststore.jks stored on a filesystem(on a docker container) becau

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-03 11:05

    If anyone is still looking at this, try prepending file:// to the file path:

    truststorelocation: "file:///tmp/kafka.client.keystore.jks"
    

    The error is complaining about the lack of a URL - adding a protocol (file://) makes the path a URL (speaking very basically)

提交回复
热议问题