title: HowTo setup Tomcat serving two SSL Certificates using SNI?
body: <p>According to these two answers <a href="https://stackoverflow.com/a/6343059">[1]</a> <a href="https://stackoverflow.com/a/10173447">[2]</a> it's possible to have two SSL certificates serving from the same <a href="http://tomcat.apache.org/" rel="nofollow noreferrer"><strong><code>Apache Tomcat</code></strong></a> using Server Name Indication (SNI).</p>
  <p>My question is then, how to setup this?
  I could setup two virtual hosts but I still have then just one connector which presents the specified SSL certificate to the client. In the connector one can specify the keystore and alias to use for the certificate but there is no parameter saying for which virtual host this connector is for or which certificate he should present to the client according to the used domain.</p>
  <p>How can I tell tomcat which SSL certificate (or to be more correct which keystore) he has to use while using SNI?</p>
  <p>[1] <a href="https://stackoverflow.com/a/6343059">https://stackoverflow.com/a/10173447</a> <br />
  [2] <a href="https://stackoverflow.com/a/10173447">https://stackoverflow.com/a/6343059</a></p>