title: How to specify outbound certificate alias for HTTPS-calls?
body: <p>I am calling a webservice that requires client certificate authentication.</p>
  
  <p>If I specify a Java keystore containing a single certificate (the client certificate the service expects) then everything works fine. However if I use a keystore that contains multiple certificates then I can't seem to be able to specify which certificate should be picked up by the client, the client seems to pick up the first available certificate (in alphabetical order).</p>
  
  <p>I have tried the following property but without expected result:</p>
  
  <pre><code>System.setProperty("com.sun.enterprise.security.httpsOutboundKeyAlias", "my-client-certificate alias");
  </code></pre>
  
  <p>How can I specify which client certificate alias that should be used?</p>