title: How to specify a certificate alias for a ResteasyClient/HttpClient keystore?
body: <p>I'm looking at the docs for the <a href="https://docs.jboss.org/resteasy/docs/3.0-rc-1/javadocs/org/jboss/resteasy/client/jaxrs/ResteasyClientBuilder.html" rel="nofollow noreferrer">ResteasyClientBuilder</a>, in which there is the ability to specify a client keystore for 2-way SSL handshaking/authentication.</p>
  
  <p>There is a method <a href="https://docs.jboss.org/resteasy/docs/3.0-rc-1/javadocs/org/jboss/resteasy/client/jaxrs/ResteasyClientBuilder.html#keyStore(java.security.KeyStore,%20java.lang.String)" rel="nofollow noreferrer"><code>keystore()</code></a> to specify the keystore (path + keystore password) as well as the private key for the client certificate.  However, how do I specify the alias of the key that I want to use?  </p>
  
  <p>Given the the ResteasyClient leverages the HttpClient, I see the same issue in Apache's <a href="https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/conn/ssl/SSLSocketFactory.html" rel="nofollow noreferrer"><code>SSLSocketFactory</code></a> constructors.</p>
  
  <p>Is there anyway to specify an alias in either framework?  Does this client keystore need to have only a single certificate pair?  I don't see any options to specify an alias anywhere.</p>