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
Asked
Active
Viewed 2,721 times
1
-
/etc/secrets/keystore/SSL.jks or /etc/secrets/keystore/ssl.jks ?! Uppercase problem ? – Kartoch May 15 '20 at 09:22
-
Nope , Sorry I didn't copy . So, while typing didn't care about case. It's not about case sensitivity , edited. – victor perfect May 15 '20 at 12:08
1 Answers
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).

Gary Russell
- 166,535
- 14
- 146
- 179