<p>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</p>

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

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