title: Make wiremock accept any certificate
body: <p>I have defined a https stub in wiremock as follows:-</p>
  
  <pre><code>public class HttpsMockMain {
      public static void main(String[] args) {
          WireMockServer mockServer = new WireMockServer(56789, 8443);
              addStub(mockServer);
              mockServer.start();
      }
      private static void addStub(WireMockServer mockServer) {
          ResponseDefinitionBuilder responseBuilder = aResponse().withStatus(200).withBody(
          "{\"message\":null,\"httpStatus\":0,\"status\":{\"httpStatusCode\":200,\"success\":true,\"errors\":[]},\"_metaData\":{\"urlParams\":{}},\"debugData\":null,\"data\":[\"01125851014\",\"01125851014\",\"debraj.manna@jabong.com\",\"03325853088\",\"03325853088\",\"debraj.manna@rediffmail.com\"],\"httpStatusToBeReturned\":200}");
          mockServer.stubFor(post(urlPathEqualTo("/oms-api/")).willReturn(responseBuilder));
      }
  }
  </code></pre>
  
  <p>Whenever I am sending a POST request to <a href="https://localhost:8443/oms-api/" rel="nofollow">https://localhost:8443/oms-api/</a> I am getting the below exception:-</p>
  
  <pre><code>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>Is it possible to tell WireMock to accept any certificate? I am on <code>wiremock 1.58</code> and <code>java 1.8</code>.</p>