How to create Keystore and Truststore from CA Certificates

@charith-elastic, Thanks for the tips, I achieved to solve my problem :partying_face: !
It was a wrong path to the location of my truststore file.
I set the wrong following configuration in spark

--conf spark.kubernetes.driver.secrets.elasticsearch-truststore-secret=/etc/secrets/trutstore.jks
--conf spark.kubernetes.driver.secrets.elasticsearch-truststore-secret=/etc/secrets/trutstore.jks

Then, it created a folder named trutstore.jks not a file.

So I just changed for:

--conf spark.kubernetes.driver.secrets.elasticsearch-truststore-secret=/etc/secrets/trutstore
--conf spark.kubernetes.driver.secrets.elasticsearch-truststore-secret=/etc/secrets/trutstore

And the right location is /etc/secrets/trutstore/trutstore.jks

Yassir