SIVAKUMAR.J
SIVAKUMAR.J

Reputation: 4354

cannot hit the servlet via https from nokia mobile using j2me

Im developing a mobile application in j2me.Im using "Nokia c2-01" mobile for testing.In my application i send a request to one servlet and receive response to mobile via GPRS.I send the request to the servlet through ("https://" ).Here one problem is when i send a request to the server.The request is not hit to server when it goes from mobile application ,but it hits succesfully and get response succefully from server when i type the address ("https://61.......") in the mobile phone's web browser. Here i cannot identify why i cannot able to send the request via my application running in mobile (but it sends succeffully from the mobile phone's browser) My source code snippet is given below

HttpsConnection httpsConnection=(HttpsConnection)Connector.open(url);
  InputStream is=httpsConnection.openInputStream();

Here the urs starts from "https://" some url.In my mobile app it throws the "CertificationException".But from mobile phone's web browser it works correctly. Please any one give me ur ideas about this issues.

Upvotes: 1

Views: 793

Answers (1)

Gorkem Ercan
Gorkem Ercan

Reputation: 3226

Are you using a test certificate? Probably phone does not have the ssl root certificate that you are using on the server and therefore refusing to connect to the server. You can use a proper certificate or try to install your certificate to your test phone.

Upvotes: 1

Related Questions