Question

I have deployed a Java Spring-MVC based application on CloudFoundry V2. My application needs to access another server by calling its webservices over https protocol. This needs that certificate should be trusted by jvm. So i need to execute command in jvm to install SSL certificate. But so far I don't see a way to get console of an application installed in CloudFoundry.

Was it helpful?

Solution

One option would be to specify a custom start command for the application, and run the cert import command before the actual application start command.

Another option would be to extend the Java buildpack and either install the cert during the JVM setup (possibly by creating an additional "framework" component") or to have the buildpack set up the cert import in the start command automatically. See https://github.com/cloudfoundry/java-buildpack#configuration-and-extension for details on extending the buildpack.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top