开发者

J2ME HTTPS Connection Problem: Certificate was issued by an unrecognized entity [duplicate]

This question already has answers here: 开发者_运维问答 Closed 11 years ago.

Possible Duplicate:

Certificate was issued by an unrecognized Entity

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?


Anyways, the problem is with the J2ME Emulator, Works perfect on the phone.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜