1
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);
Running the project through IDE STS(Spring boot) works, but when generating the file. War and run it from error as it does not find the path to the cacerts file, as I can set the file to work with . WAR ?
I also tried to remove System.setProperty and set cacerts when running java-jar but it didn’t work either:
java -Djavax.net.ssl.trustStore=./cacerts -jar target/uaa-0.0.1-SNAPSHOT.war
please add the errors generated by each run
– Lucas Duete