title: grails - RestClientBuilder
body: <p>I am using the current version of rest client builder plugin. I tested out the uri via curl:</p>
  
  <pre><code>curl --user username:password https://localhost:8085/rest/api/latest/plan.json?os_authType=basic
  </code></pre>
  
  <p>I get the expected json in return. When I try to translate this to grails using the plugin like this:</p>
  
  <pre><code>RestBuilder rb = new RestBuilder()
      def response = rb.get("https://localhost:8085/rest/api/latest/plan.json?os_authType=basic"){     
              auth 'username', 'password'
          }
  
  response.json instanceof JSONObject
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is 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
  </code></pre>
  
  <p>Why does it work in curl and not with the plugin? How do I get this to work?</p>
  
  <p>Thanks!</p>