|
Home > Archive > WebSphere Application Server > April 2006 > I get "certificate expired". But it is not?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
I get "certificate expired". But it is not?
|
|
|
| Hi all,
I'm trying to open an SSL connection. Below is my code:
java.net.URL url = new java.net.URL("https://abc.com");
java.net.URLConnection conn = url.openConnection();
java.io.InputStream input = conn.getInputStream();//this line throws exception below:
javax.net.ssl.SSLHandshakeException: certificate expired
at com.ibm.jsse.bs.a(Unknown Source)
at com.ibm.jsse.bs.startHandshake(Unknown Source)
at com.ibm.net.ssl.www.protocol.https.b.o(Unknown Source)
at com.ibm.net.ssl.www.protocol.https.q.connect(Unknown Source)
at com.ibm.net.ssl.www.protocol.http.cf.getInputStream(Unknown Source)
at com.ibm.net.ssl.internal.www.protocol.https.HttpsURLConnection.getInputStream
BUT I can go to https://abc.com using internet explorer, and it shows no warning about the expired certificate. What may be the problem?
RAD 6.0.1
WAS 5.1 test environment.
JSSE documentation (http://www-128.ibm.com/developerwor...2_benantar.html) says JSSE is setup in WAS by default. I can see trust items in java.security as well, which proves -I guess- that my JSSE setup is ok.
Thanks...
|
|
|
|
|