SSL.keystore.location can't find JKS file in my Kubernetes secrets mount

跟風遠走 提交于 2020-05-17 07:45:39

问题


I have created a secret for my JKS file under volume mount /etc/secrets/keystore. I am accessing my JKS file path as an environment variable where ssl.keystore.location gets resolved as file:///etc/secrets/keystore/ssl.jks. But I get exception from SSL engine builder that modification time of keystore couldn't be found and java.nio.file.NoSuchFile Exception file:/etc/secrets/keystore/ssl.jks


回答1:


Remove the file://. The keystore is opened by the Kafka client, not Spring.

Kafka knows nothing about Spring's Resource abstraction; you need to provide just the path to the file (relative or absolute).



来源:https://stackoverflow.com/questions/61812478/ssl-keystore-location-cant-find-jks-file-in-my-kubernetes-secrets-mount

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