How do I add a certificate to the trust store when application is running in bluemix. Is there any way to update cacert, either programmatically or using cli?
Any d
You could try using the spring-boot-ssl-truststore-gen which adds the certificate to the system truststore inside the buikdpack:
First you need this in your pom.xml (or alternative):
jcenter
http://jcenter.bintray.com
true
never
warn
true
warn
and
com.orange.clara.cloud.boot.ssl-truststore-gen
spring-boot-ssl-truststore-gen
2.0.21
Next declare the certificate in your manifest.yml:
env:
TRUSTED_CA_CERTIFICATE: |-
-----BEGIN CERTIFICATE-----
changeme
-----END CERTIFICATE-----
That's it. When you cf push your application, the certificate will get added to the truststore.