Getting CertificateException: No subject alternative names present while hitting the webservice

0
I am trying to hit the webservice from mendix but, i am getting an error "CertificateException: No subject alternative names present" through https. When i tried the same in soap Ui, It is working fine and i am able to get the response. I have added the domain and ip address in the hosts file and even i have checked with connection timeout settings but it is 5 mins. we have disabled policy definitions and authentication too, even though we are getting the sam exception. I have attached the logs below, please check it if any one faced the same issue. Thanks in advance   Response exception received in Tube [ MesageDumpingTube ] Instance [ 1 ] Engine [ Metro/2.1 (branches/2.1-6728; 2011-02-03T14:14:58+0000) JAXWS-RI/2.2.3 JAXWS/2.2: Stub for https://10.19.32.210:8191/PY920/MaterialIntegrationManager ] Thread [ MxRuntimeSystem-action-dispatcher-15 ]: com.sun.xml.ws.client.ClientTransportException: HTTP transport error: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present     at com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:132)     at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:256)     at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:184)     at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:137)     at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:641)     at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:600)     at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:585)     at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:482)     at com.sun.xml.ws.client.Stub.process(Stub.java:323)     at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:192)     at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:218)     at com.mendix.integration.webservices.call.WebserviceCaller$3.run(WebserviceCaller.java:329)     at com.mendix.integration.webservices.call.WebserviceCaller$3.run(WebserviceCaller.java:303)     at java.security.AccessController.doPrivileged(Native Method)     at com.mendix.integration.webservices.call.WebserviceCaller$1.execute(WebserviceCaller.java:267)     at com.mendix.integration.webservices.call.WebserviceCaller$1.execute(WebserviceCaller.java:264)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)     at com.mendix.util.classloading.Runner$1.run(Runner.java:21)     at java.security.AccessController.doPrivileged(Native Method)     at com.mendix.util.classloading.Runner.runUsingClassLoaderOf(Runner.java:17)     at com.mendix.integration.webservices.call.WebserviceCaller.call(WebserviceCaller.java:272)     at com.mendix.integration.webservices.call.WebserviceCaller.call(WebserviceCaller.java:133)     at com.mendix.integration.webservices.WebserviceModuleImpl.callWebservice(WebserviceModuleImpl.java:201)     at com.mendix.integration.internal.InternalIntegrationImpl.callWebservice(InternalIntegrationImpl.scala:275)     at com.mendix.integration.actions.microflow.CallWebServiceAction.execute(CallWebServiceAction.scala:96)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:192)     at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:149)     at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)     at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)     at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)     at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)     at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:174)     at com.mendix.core.component.InternalCore.execute(InternalCore.java:377)     at com.mendix.webui.actions.client.ExecuteAction.execute(ExecuteAction.java:135)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:324)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:317)     at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:317)     at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:144)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)     at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:146)     at scala.util.Try$.apply(Try.scala:191)     at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:140)     at akka.actor.Actor$class.aroundReceive(Actor.scala:465)     at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:136)     at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)     at akka.actor.ActorCell.invoke(ActorCell.scala:487)     at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)     at akka.dispatch.Mailbox.run(Mailbox.scala:220)     at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)     at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)     at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)     at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)     at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present     at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)     at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)     at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)     at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)     at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)     at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)     at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)     at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)     at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)     at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)     at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)     at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)     at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)     at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)     at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1283)     at sun.net.www.protocol.http.HttpURLConnection.access$100(HttpURLConnection.java:90)     at sun.net.www.protocol.http.HttpURLConnection$8.run(HttpURLConnection.java:1250)     at sun.net.www.protocol.http.HttpURLConnection$8.run(HttpURLConnection.java:1248)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782)     at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1247)     at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)     at com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:120)     ... 54 more Caused by: java.security.cert.CertificateException: No subject alternative names present     at sun.security.util.HostnameChecker.matchIP(HostnameChecker.java:144)     at sun.security.util.HostnameChecker.match(HostnameChecker.java:93)     at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:455)     at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:436)     at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:200)     at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)     at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491)     ... 72 more  
asked
1 answers
0

Calling a webservice succesfull from soapui is less strict then Mendix.

check the domain name for which the certificate is granted, check the domain name used for the service.

answered