When I tried to start my spring boot app, I specified following 3 VM arguments:
-Djavax.net.ssl.trustStore=truststore.jks
-Djavax.net.ssl.trustStore.password=123456
I see the following 2 lines in the logs and my application failed to start with ssl error:
javax.net.ssl|DEBUG|17|restartedMain|2021-01-28 09:07:35.247 EST|TrustStoreManager.java:161|Inaccessible trust store: truststore.jks
javax.net.ssl|DEBUG|17|restartedMain|2021-01-28 09:07:35.248 EST|TrustStoreManager.java:112|trustStore is: C:Program FilesJavajdk-11.0.5libsecuritycacerts
I have put my trustore.jks file in src/main/resource
folder but somehow spring boot is unable to access/detect it, also I am on a corporate machine and can't add the server certificates to cacerts so that solution won't work for me.
question from:
https://stackoverflow.com/questions/65938877/spring-boot-app-unable-to-detect-truststore 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…