how to communicate with HTTPS?

Hello everyone:

I would like to know how to communicate with a certain HTTPS web site in J2ME. I'm a newer in HTTPS. In my opinion, different sites have different public keys.

So how to get this public key? I've tried

c=(HttpConnection)Connector.open(httpslocation);

...

but it returned me 'Root CA's public key is expired' Exception.

Does that mean the keys i have in the keystore of J2ME have expired? So how to get the new ones? downloading from certain web sites?

Thanks a lot.

[539 byte] By [lezhanga] at [2007-10-3 3:34:51]
# 1
> c=(HttpConnection)Connector.open(httpslocation);is it your exact code?because you should use HttpsConnection
suparenoa at 2007-7-14 21:29:27 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
I have the similar problem. But I'm using HttpsConnection. When I try run my MIDlet on WTK2.2 I have the same exception. Please tell me what to do. Should I import valid certificate to the keystore? How can I do that?Thank you in advance.
OlegNa at 2007-7-14 21:29:27 > top of Java-index,Java Mobility Forums,Java ME Technologies...