public HttpRequest trustAllCerts() throws HttpRequestException {
    final HttpURLConnection connection = getConnection();
    if (connection instanceof HttpsURLConnection)
      ((HttpsURLConnection) connection)
          .setSSLSocketFactory(getTrustedFactory());
    return this;
  }
Configure HTTPS connection to trust all certificates
<p>
This method does nothing if the current request is not a HTTPS request

@return this request
@throws HttpRequestException
lib/src/main/java/com/github/kevinsawicki/http/HttpRequest.java