title: Grails:Groovy:SSLPeerUnverifiedException: peer not authenticated
body: <p>I want to hit an xml request to a url while running the code in my local system it is working well i have created a war file and deployed the same in server,but while running in server getting an exception <code>'javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated'</code>
  i have used groovy http builder</p>
  
  <pre><code>def http = new HTTPBuilder(url)
            http.auth.basic('username', 'password')
          try {               
              http.request(Method.POST, ContentType.TEXT) {
                          req-&gt;
                              headers.accept = "application/xml"
                              body = request //xml request
                              response.success = {
                                          resp,reader -&gt;
                                              Response =  reader.text
                              }
              }
          }
          catch(HttpResponseException ex) {
               println ex;
          }
  </code></pre>
  
  <p>how can i solve this problem in this case..?</p>