title: WSClient and SSL
body: <p>In Play 2.4.3 web app I need to call other service via HTTPS using <code>WSClient</code>. I followed <a href="https://www.playframework.com/documentation/2.5.x/WSQuickStart" rel="nofollow noreferrer">the article</a> but the error appears:</p>
  
  <blockquote>
    <p>play.api.libs.ws.ssl.CompositeCertificateException: No trust manager
    was able to validate this certificate chain: # of exceptions = 1</p>
  </blockquote>
  
  <p>The exception inside <code>CompositeCertificateException</code>:</p>
  
  <blockquote>
    <p>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>Part of <code>application.conf</code> responsible for SSL:</p>
  
  <pre><code>play.ws.ssl {
    trustManager = {
      stores = [
        { type : "PEM", path : "C:/A/B/globalsign.crt" }
      ]
    }
  }
  </code></pre>
  
  <p>What's wrong here?</p>