hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Veena Sarolkar" <sarolkar_ve...@extenprise.com>
Subject RE: about unable to find valid certification path to requested target
Date Mon, 28 Feb 2005 05:20:04 GMT
Hi,

I am using HTTPClient to connect to site over https.
I am behind a proxy. I am specifying proxy details(host,port).
But when I call getMethod's exceute, I am getting following exception

javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException: CA certificate does not include
basic constraints extension 	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
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:69) 	at
java.io.BufferedOutputStream.flush(BufferedOutputStream.java:127) 	at
org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpCo
nnection.java:825) 	at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.jav
a:1920) 	at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:100
2) 	at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethod
Director.java:382) 	at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDir
ector.java:168) 	at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:394)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
at BasicAuthenticationExample.main(BasicAuthenticationExample.java:79)

For proxy I m writing  client.getHostConfiguration().setProxy("192.168.0.1",
3128);
Even I am notable to run sample examples for https like
"BasicAuthenticationExample.java".
Can somebody help me.

Regards,
Veena



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message