Is there an option how to pass relative path to System property javax.net.ssl.trustStore

2.6k views Asked by At

Hello is there an option how to pass relative path of my truststore to java System property javax.net.ssl.trustStore ?.

I'm trying this code System.setProperty("javax.net.ssl.trustStore",configuration.getProperty("trustStore.location")); with property in properties file set to trustStore.location=security/cc.jks but it doesn't work for me. If i specify absolute path in trustStore.location property it works.

Thanks.

0

There are 0 answers