title: What is the right way to send a client certificate with every request made by the resttemplate in spring?
body: <p>i want to consume a REST service with my spring application. To access that service i have a client certificate (self signed and in .jks format) for authorization.
  What is the proper way to authenticate against the rest service?</p>
  
  <p>This is my request:</p>
  
  <pre><code>public List&lt;Info&gt; getInfo() throws RestClientException, URISyntaxException {
  
      HttpEntity&lt;?&gt; httpEntity = new HttpEntity&lt;&gt;(null, new HttpHeaders());
  
      ResponseEntity&lt;Info[]&gt; resp = restOperations.exchange(
              new URI(BASE_URL + "/Info"), HttpMethod.GET, 
              httpEntity, Info[].class);
      return Arrays.asList(resp.getBody());
  }
  </code></pre>