DevOps Automation

DevOps Automation

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#DevOps
#Businessautomation
#DevOpsAutomation
 View Only

IBM Bluemix - Problems to connect Java Liberty Runtime with a MongoDB for Compose

  • 1.  IBM Bluemix - Problems to connect Java Liberty Runtime with a MongoDB for Compose

    Posted 03/28/17 09:56 AM

    Hi guys,

    Did someone already successful connect a cloudfoundry java app (Java Liberty Runtime) with a mongo instance (provisioned by Compose) on IBM Bluemix?

     

    I can connect a local java app and use mongo cli locally to access the database directly, but if the app runs on Bluemix I still recieving a exception =( Looks like the java application server do not recognize the certificate created by Compose to do SSL connections, but I can't find out how to authorize such certificate.

    I got the following exceptions on my app running on Bluemix:

     

    ava.security.cert.CertPathValidatorException: The certificate issued by CN=tiago.moura@oneforce.com.br-269ab237e50b8a7f42b0871c1a034eee is not trusted; internal cause is:

    java.security.cert.CertPathValidatorException: Certificate chaining error}, caused by {java.security.cert.CertPathValidatorException: Certificate chaining error}}, {address=, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketWriteException: Exception sending message}, caused by {javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:
    I will be glad with any help =)