Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Boot import trust-store

I need to import a trust-store in Spring Boot without using System.setProperty, but only the application.properties file. This is the structure of my project: enter image description here

I add this string: server.ssl.trust-store = cacerts, but when i run the spring boot application i have this error message:

ERROR 6576 --- [ main] o.s.boot.SpringApplication : Application startup failed java.lang.IllegalArgumentException: Resource location must not be null

Someone have solved this?

like image 851
ElMariachi25 Avatar asked Nov 27 '25 15:11

ElMariachi25


1 Answers

I found the solution, the property file need value for trust and key store not for only one of this, if one of this property is null the application throws exception

like image 88
ElMariachi25 Avatar answered Nov 30 '25 04:11

ElMariachi25



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!