You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Kunal Chawla <ch...@yahoo.co.in> on 2009/11/19 13:20:36 UTC

Help with Self Signed SSL Certificates

Hi Everyone,


I am developing a proxy server kind of web app which will be relaying user input to the server. The server uses a self signed certificate. I am using httpclient 4.0 for this purpose.

I keep on getting the error : javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

So if some could point me to some tutorial or sample code for trusting self  signed certificates that would be great. I could find good tutorial for HttpClient 3.0 but not for 4.0. I also have the server's SSL certificate so if some can guide how do I add this certificate to truststore so that the HttpClient can use it even dat would be fine.

Thanks!!!

Kunal Chawla
Graduate Research Assistant
Georgia /institute of Technology
www.chawlakunal.com

________________________________
 The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.


      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/

Re: Help with Self Signed SSL Certificates

Posted by Oleg Kalnichevski <ol...@apache.org>.
Kunal Chawla wrote:
> Hi Everyone,
> 
> 
> I am developing a proxy server kind of web app which will be relaying user input to the server. The server uses a self signed certificate. I am using httpclient 4.0 for this purpose.
> 
> I keep on getting the error : javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
> 
> So if some could point me to some tutorial or sample code for trusting self  signed certificates that would be great. I could find good tutorial for HttpClient 3.0 but not for 4.0. I also have the server's SSL certificate so if some can guide how do I add this certificate to truststore

http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/keytool.html

Oleg


  so that the HttpClient can use it even dat would be fine.
> 
> Thanks!!!
> 
> Kunal Chawla
> Graduate Research Assistant
> Georgia /institute of Technology
> www.chawlakunal.com
> 
> ________________________________
>  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
> 
> 
>       The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/


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