Skip to main content

ksoap2 with https

No replies
jettgamboa
Offline
Joined: 2007-11-15

I am trying to call a .NET webservice in IIS using https. Certificate is self-signed using openssl. I am getting the following exception:

java.io.IOException: Could not parse subject name
at com.sun.midp.ssl.X509Certificate.generateCertificate(+564)
at com.sun.midp.ssl.Handshake.parseChain(+89)
at com.sun.midp.ssl.Handshake.rcvCert(+114)
at com.sun.midp.ssl.Handshake.doHandShake(+96)
at com.sun.midp.ssl.SSLStreamConnection.(+173)
at com.sun.midp.ssl.SSLStreamConnection.(+12)
at com.sun.midp.io.j2me.https.Protocol.connect(+214)
at com.sun.midp.io.j2me.http.Protocol.streamConnect(+57)
at com.sun.midp.io.j2me.http.Protocol.startRequest(+12)
at com.sun.midp.io.j2me.http.Protocol.sendRequest(+38)
at com.sun.midp.io.j2me.http.Protocol.sendRequest(+6)
at com.sun.midp.io.j2me.http.Protocol.closeOutputStream(+4)
at com.sun.midp.io.BaseOutputStream.close(ConnectionBaseAdapter.java:737)
at org.ksoap2.transport.HttpTransport.call(+165)
at com.meralco.cws.webservice.ContactsService.GetPersons(ContactsService.java:118)
at com.meralco.cws.testharness.WebServiceTest.ContactsTest(WebServiceTest.java:24)
at com.meralco.cws.form.CWSMIDlet.startApp(CWSMIDlet.java:40)
at javax.microedition.midlet.MIDletProxy.startApp(MIDletProxy.java:44)
at com.sun.midp.midlet.Scheduler.schedule(+270)
at com.sun.midp.main.Main.runLocalClass(+28)
at com.sun.midp.main.Main.main(+80)

Any ideas what is causing this? I already tried adding the server certificate to the emulator.