tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre-John Mas <>
Subject Re: Ignore or Trust any certificate
Date Sat, 11 Jul 2009 13:38:47 GMT

On 11-Jul-2009, at 00:36, kareem_s_m wrote:

> So when my site connects to a site through HTTPS protocol, tomcat  
> tires to
> validate the server certificate with the cacerts keystore in my JDK.  
> Now if
> the server certificate is signed by a trusted authority then the  
> connection
> is successful. But if the certificate is a test one (not signed by any
> trusted authority) and when tomcat tries to validate the  
> certificate, the
> validation fails and the connection fails. The error I get it as  
> follows:
> Caught unhandled exception:
> PKIX path building failed:
> unable  
> to find
> valid certification path to requested target.
> So to avoid this, I want to know if tomcat can ignore or trust any  
> server
> certificate with out validating it.

What API are you using to connect to the server? For example the default or HttpClient?

If you are using HttpClient, you may want to look at this thread:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message