I need to set the path of a cacerts file to the trustStore, to do this I did:
String keystore = "src/main/resources/cacerts";
System.setProperty("javax.net.ssl.trustStore", keystore);
When running the project through the STS IDE (Spring boot) it works, but when generating the .war file and executing it from the error because it does not find the path to the cacerts file, how can I set the file to work with .WAR ?
I also tried to remove System.setProperty and set cacerts to run java -jar but it did not work either:
java -Djavax.net.ssl.trustStore=./cacerts -jar target/uaa-0.0.1-SNAPSHOT.war