Getting java.security.SignatureException when trying to hit local web API from Mendix localhost

1
Hi  I’m trying to hit localhost for Web API through Mendix Rest Consume Activity and getting this exception ‘java.security.SignatureException’. Below is the full stacktrace of the error: Error calling REST service     at VisionToValuePattern.API_GetPatternData (CallRest : 'Call REST (GET)') Advanced stacktrace:     at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:79) Caused by: java.security.PrivilegedActionException: javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed     at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:79) Caused by: null     at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:79) Caused by: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed     at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:79) Caused by: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed     at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:79) Caused by: signature check failed     at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:79) Caused by: Signature does not match.     at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:79) Anyone knows how can I hit my local web api via mendix?
asked
1 answers
0

It looks like your local service is being accessed over HTTPS but you don’t have a trusted certificate for it.

You could serve the local API over HTTP so you don't need a certificate, otherwise, you would need to add the certificate to your trust store.

Hope this helps.

answered