REST Service Certificate Issue in Cloud

0
Hi Team, I am facing the certificate issue when calling the REST service after deploying the mendix application in Mindsphere using Pivotal Cloudfoundry. In local, I have added the certificate in the Project settings and able to  call the REST service without any issues. I am not sure whether this Certificate that is added in the Settings would be picked by Mindsphere or not. Please help me to solve this issue in Mindsphere cloud.   2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT ERROR - Connector: com.mendix.core.CoreException: com.mendix.modules.microflowengine.MicroflowException: Error calling REST service 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT at Login.Login (CallRest : 'Call REST (GET)') 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT Advanced stacktrace: 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT at com.mendix.basis.component.InternalCoreBase.execute(InternalCoreBase.java:389) 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT Caused by: com.mendix.modules.microflowengine.MicroflowException: Error calling REST service 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT at Login.Login (CallRest : 'Call REST (GET)') 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT Advanced stacktrace: 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:57) 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: java.security.PrivilegedActionException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT at com.mendix.integration.util.PrivilegedUtil$.withPrivileged(PrivilegedUtil.scala:15) 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT Caused by: java.security.PrivilegedActionException: null 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT at java.security.AccessController.doPrivileged(Native Method) 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT at com.mendix.integration.util.PrivilegedUtil$.withPrivileged(PrivilegedUtil.scala:11) 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT at com.mendix.http.LoggableHttpClient.execute(LoggableHttpClient.scala:18) 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT at com.mendix.integration.actions.microflow.RestCallAction.executeRequest(RestCallAction.scala:66) 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:52) 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47) 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:201) 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:157) 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46) 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:79) 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:57) 2019-03-19T21:04:51.24-0400 [APP/PROC/WEB/0] OUT at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55)  
asked
1 answers
0

No, the certificate imported into the modeler will not be used automatically in the cloud. 

Take a look at this section of the Cloud Foundry documentation. It will show you how to include a certificate:

https://github.com/mendix/cf-mendix-buildpack/blob/master/README.md#certificate-management

answered