Thoughts on how to add trusted store for connection to external sites that use that certificate for HTTPS
One can just provide the -Djavax.net.ssl.trustStore=<path/to/store> -Djavax.net.ssl.trustStorePassword=<password>
options when running the Java application
However, this is not always possible (for example, when run in the cloud).
And if you want to use server.ssl.trust-store/server.ssl.trust-store-password
options from Spring Boot, be aware that with
those you also have to provide key-store
options as well. And, basically that would be an abuse, because this configuration is specifically for server side of your application.