Hi,
I am trying to connect to a https url which is redirected to a non secure
http url. When I connect to the same url with my browser, I am redirected
automatically (after secure dialog boxes). When I use httpclient, I always
get the following exception. How could deal with this exception ?
javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException: Couldn't find trusted certificate
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
at
org.apache.commons.httpclient.HttpConnection.write(HttpConnection.java:693)
at
org.apache.commons.httpclient.HttpConnection.write(HttpConnection.java:652)
at
org.apache.commons.httpclient.HttpConnection.print(HttpConnection.java:772)
at
org.apache.commons.httpclient.HttpMethodBase.writeRequestLine(HttpMethodBase
.java:2060)
at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.jav
a:1971)
at
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.j
ava:2298)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:915
)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:557)
at
fr.cea.lic2m.idre.wedor.JakartaWebSession.connectToURL(JakartaWebSession.jav
a:75)
at
fr.cea.lic2m.idre.webmodule.requests.GRInit.execute(GRInit.java:48)
at
fr.cea.lic2m.idre.webmodule.WebRequest.execute(WebRequest.java:72)
at fr.cea.lic2m.idre.frag.Agent.run(Agent.java:38)
Caused by: java.security.cert.CertificateException: Couldn't find trusted
certificate
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.a(DashoA6275)
at
com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(DashoA6
275)
at
com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(DashoA6
275)
... 19 more
Is there a manual about how to use SSL and Httpclient ? Does anyone have any
suggestion ?
thanks,
BM
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]