peer not authenticated

0
We're calling a webservice which is recently using a new ssl certificate. Since the implementation of the new ssl certificate, we're getting an exception in Mendix. As far as I know it's a self signed certificate and they're saying that we need to accept the ssl certificate. Do I need to do it according to this guide: https://world.mendix.com/display/howto40/Call+a+web+service+over+https+which+uses+a+self+signed+certifcate? Edit: It's not a self signed certificate. So do I need to do something on the cloud, because it's a CA certificate? Edit after answer Ronald: I've added the line below, but still getting the same error. I don't see the exact reason of the failure in the stacktrace and that's really annoying. CACertificates: /home/customer/.ssh/www.customername.nl.crt Problem solved: Seems that the certificate was not accepted, because RapidSSL was not added tot the truststore. We learned one thing: certificates from a CA authority aren't accepted by default! Caused by: Error calling webservice at bM.a(SourceFile:110) Caused by: peer not authenticated at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:352) at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:390) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148) at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149) at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:561) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732) at lI.a(SourceFile:166) at lI.a(SourceFile:85) at com.mendix.modules.webservices.WebserviceModule.callWebservice(SourceFile:114) at bM.a(SourceFile:93) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.executeSync(SourceFile:167) at is.a(SourceFile:71) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.executeSync(SourceFile:167) at is.a(SourceFile:71) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.executeSync(SourceFile:167) at is.a(SourceFile:71) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.executeSync(SourceFile:167) at is.a(SourceFile:71) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.executeSync(SourceFile:167) at is.a(SourceFile:71) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.executeSync(SourceFile:167) at dK.a(SourceFile:68) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.executeSync(SourceFile:167) at is.a(SourceFile:71) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.executeSync(SourceFile:167) at dK.a(SourceFile:68) at kM.a(SourceFile:67) at eR.executeAction(SourceFile:96) at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:49) at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:473) at it.b(SourceFile:155) at com.mendix.core.Core.execute(SourceFile:277) at com.mendix.core.Core.execute(SourceFile:252) at scheduledeventconfig.helpers.ASyncScheduledEventThread.executeMicroflow(ASyncScheduledEventThread.java:105) at scheduledeventconfig.helpers.ASyncScheduledEventThread.run(ASyncScheduledEventThread.java:60)
asked
2 answers
1

I put the example YAML here because of carriage return problems:

CACertificates:

"/home/applicationname/.ssh/name.cer,/home/applicationname.ssh/othername.cer"

Make sure you adjust the path to the right path of your application.

And beware of the spaces when editing the yaml.

Regards,

Ronald

answered
0

Samet,

Is it running in the cloud? Because then you need to make some extra steps and make sure the certificate is placed on the server and the yaml must be adjusted.

Regards,

Ronald

answered