Https Connection in MIDP
Hi All,
I could successfully run the application as given in the http://developers.sun.com/techtopics/mobility/midp/articles/https/.
Am using tomcat server. i have the entry in server.xml as
In c:\tomcat\conf\server.xml remove the comment marks from the SSL HTTP/1.1 Connector entry as follows:
<!-- Define an SSL HTTP/1.1 Connector on port 8443 -->
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="443" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="10" debug="0" scheme="https" secure="true">
<Factory className="org.apache.catalina.net.SSLServerSocketFactory"
clientAuth="false" protocol="TLS"/>
</Connector>
If "clientAuth" is false then i'm getting response successfully. but when "clientAuth" is true i got the following exception
java.io.IOException: No client cert
at com.sun.midp.ssl.Handshake.sndKeyExch(+27)
at com.sun.midp.ssl.Handshake.doHandShake(+170)
at com.sun.midp.ssl.SSLStreamConnection.<init>(+157)
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(+14)
at com.mportal.familymonitor.communication.ConnectionHandler.post(+151)
at com.mportal.familymonitor.control.Manager.run(+132)
what is clientAuth? Should it be always "false" ?
looking forward your replies.
regards
ss

