J2ME HTTPS Connection Problem: Certificate was issued by an unrecognized entity
Posted
by Mustafa
on Stack Overflow
See other posts from Stack Overflow
or by Mustafa
Published on 2010-06-07T15:28:36Z
Indexed on
2010/06/07
15:32 UTC
Read the original article
Hit count: 332
I am developing a little J2ME application that will read our grades from our university's server. With Desktop Applications, It is fine, I can do it but in J2ME, it always gives me this error, even I use well-known services like HTTPS Google, I still get the same error.
urlConn = (HttpsConnection) Connector.open("https://stars.bilkent.edu.tr/srs/ajax/login.php");
urlConn.setRequestMethod(HttpsConnection.POST);
urlConn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
o = urlConn.openOutputStream();
// Sending my POST requests to server
input = urlConn.openDataInputStream();
In the last line I always get the error I mentioned above. What should I do about it?
© Stack Overflow or respective owner