title: Is it possible for Grails RestClientBuilder plugin to trust self-signed certificates for https connections?
body: <p>In local development, where I have an API server running at <code>https://localhost:8443</code> that uses a self signed certificate, I am (expectedly) greeted with the following error when trying to connect to it from my other grails app that uses RestClientBuilder (<a href="http://grails.org/plugin/rest-client-builder" rel="nofollow">http://grails.org/plugin/rest-client-builder</a>)</p>
  
  <blockquote>
    <p>Message: unable to find valid certification path to requested target</p>
  </blockquote>
  
  <p>I couldn't find any way of configuring RestClientBuilder to accept non trusted certificates.  Note it is not an option for me to connect to the local server with plain http.</p>
  
  <p>I will accept an answer that lets me configure my entire grails app (not just RestClientBuilder) to allow https connections to self signed certs <strong>only when running in development</strong></p>