According to these two answers [1] [2] it's possible to have two SSL certificates serving from the same Apache Tomcat
using Server Name Indication (SNI).
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.
How can I tell tomcat which SSL certificate (or to be more correct which keystore) he has to use while using SNI?
[1] https://stackoverflow.com/a/10173447
[2] https://stackoverflow.com/a/6343059