HTTPS Problems

Hello,

I'm trying to open a connection using https, and that's what happens:

Encountered unrecognized certificate issuer

java.io.IOException: Bad Certificate

Can someone tell me how to solve this?

I tried different servers to connect to.

Kind regards,

Carsten

[345 byte] By [ckoehler] at [2007-9-26 13:28:37]
# 1

Hi Carsten:

i met this problem before, i think the problem is

about the conn.setRequestProperty(...) ,

maybe the server site can't reslove the content we

sent!

and i try to add below, and then it did'nt show the

error message again!

hope it worth!

like this :

conn.setRequestMethod(HttpConnection.POST);

conn.setRequestProperty("User-Agent","Profile/MIDP-

1.0 Configuration/CLDC-1.0");

conn.setRequestProperty("Content-Language","en-

US");

conn.setRequestProperty("Content-

Type","application/x-www-form-urlencoded");

conn.setRequestProperty("Content-

Length",""+poststr.length());

conn.setRequestProperty("Cache-Control","no-store");

conn.setRequestProperty("Pragma","no-cache");

conn.setRequestProperty("Expires","Tue, 1 Jul 1997

00:00:00 GMT");

wthomasu at 2007-7-2 13:56:33 > top of Java-index,Java Mobility Forums,Java ME Technologies...