Error calling REST service: unable to find valid certification path to requested target
0
Hi y'all! I've been trying to connect to a REST API (GET), but I get the following error: unable to find valid certification path to requested target Caused by: java.security.PrivilegedActionException Would you know where to start looking for a solution? I've been browsing the forum and it seems the problem occurs more often, but I haven't found a solution yet. Any help is highly appreciated :) Below a bit of the stacktrace (only the first part of the 'caused by' statements, to save you from scrolling) If you need more info, let me know! Thanks Advanced stacktrace: at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:57) Caused by: 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 at com.mendix.integration.util.PrivilegedUtil$.withPrivileged(PrivilegedUtil.scala:15) Caused by: null at java.security.AccessController.doPrivileged(Native Method) at com.mendix.integration.util.PrivilegedUtil$.withPrivileged(PrivilegedUtil.scala:11) at com.mendix.http.LoggableHttpClient.execute(LoggableHttpClient.scala:18) at com.mendix.integration.actions.microflow.RestCallAction.executeRequest(RestCallAction.scala:66) Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1959) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) Caused by: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397) Caused by: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)