For a simple java program, add .JKS file as a connection property in the Java code.
Alternatively, you can pass the trust store details within the JDBC URL, using the following format:
jdbc:infafas://<server hostname with fully qualified domain name>:<Data Vault server port number>?SSL=1&TrustStore=<jks file with absolute file name>&TrustStorePassword=<trustorepassword>&TrustStoreType=jks
For example: jdbc:infafas://irs11ilm02:8564/adm?SSL=1&TrustStore=D:/filename.jks&TrustStorePassword=password&TrustStoreType=jks
These parameters are optional. The .jks file path must contain a forward slash ("/) , regardless of the operating system.