title: Java Unirest disable cerificate
body: <p>May you tell me the way to disable certificate verify for using Unirest as rest client.</p>
  
  <p>I use Unirest with Java Spring. Below is my source code:</p>
  
  <pre><code>try {
      HttpResponse&lt;String&gt; response = Unirest.post("myurl")
        .header("content-type", "application/json")
        .header("accept", "application/json")
        .body("my json data here")
        .asJson();
  } catch (Exception e) {
      logger.info("==================REST CLIENT ERROR: "+e.getMessage());
  }
  </code></pre>
  
  <p>The result:</p>
  
  <blockquote>
    <p>==================REST CLIENT ERROR: 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>