title: Java HTTPS connection with SSL certificate Error
body: <p>I'm trying to use the SSL certificate obtained with StartSSL.com on an Apache server. The connection with browser is fine, but when I try to use a Java application, I got this exeption:</p>
  
  <blockquote>
    <p>Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</p>
  </blockquote>
  
  <p>I don't understand what could be the problem, because with the browser, I got the SSL with green label.</p>