title: How to handle alias in TrustStore
body: <p>I am running the Java process (Microservice) and trustStore configured in the JVM parameter. If the Microservice needs to connect the external URL which required the cert to be imported in trustStore.</p>
  
  <pre><code>Example: 
  example.co.uk -&gt; examplecouk as alias in trustStore
  example.com -&gt; examplecom as alias in trustStore
  example.in  -&gt; examplein as alias in trustStore
  </code></pre>
  
  <p>How does Java know that which certs and alias to be picked from the trustStore for the particular endpoint as I don't pass/mention the alias in the JVM params? Is it pick randomly? </p>