I have developed an J2ME app (unsigned Midlet), which is supposed to connect to a webserver through SSL (HTTPS). I am running the Midlet on S60 3rd Edn Emulator. Midlet tries to open a HTTPS connection, but encounters CertificateException.
I think I need to install/import the public key of the tomcat (Jboss) web server. but I don't know how can i generate the public key for S60 3rd Edn Emulator and install the public key on the Emulator.
webserver is basically a JBoss server with a small servlet running on it. I followed the following steps to enable the HTTPS handling in Jboss web server.
1- I generated keystore for Jboss by following command
keytool -genkey -alias tomcat -keyalg RSA -keystore test.keystore
2- I placed the test.keystore in /conf dir and updated the server.xml file to open a (TLS) port 8484 for accepting HTTPS requests.
3- I am able to GET https://localhost:8484 through my windows IE.
I am sure it is a small thing to many of you guys, I am new to J2ME... So please help me out I am banging my head for quite some time.
Thanks in advance.