I am working on deploying an application that connects with a third party application via SSL connection. For that earlier I was using these certs and keeping them in the build pack and pick them from there. Now due to limited number of production release I need to externalize the SSL certs. So far I have externalized the certs which were picked from jre/lib/security/wasadm. via a SSLConnectionFactory.
But there are some certs which are part of cacert and needs to be picked from the JAVA_OPTS
on PCF as environment variable like -Djavax.net.ssl.trustStore=<URL to a Path on Server>
How can I use -D or JAVA_OPTS
in order to retrieve the trustStore from there.
Jdk -> 1.7xx
Target Environment -> PCF
environment OS -> Linux
Would admire any help in here.
I have resolved the issue by picking the file from the URL and putting that in my war at startup and hence it solved my all issues. Thanks!