Tomcat hosting multiple virtual host with multiple SSL certificate
<p>I have a server hosting multiple websites using Tomcat 7, for example </p>

<ul>
<li>a.abc.com</li>
<li>b.abc.com</li>
<li>c.def.com</li>
<li>d.def.com</li>
</ul>

<p>Using tomcat's virtual hosting feature, so they each may belong to different webapps folder.</p>

<p>We're now trying to implement Https to each of the sites. So basically we got 2 wildcard certificates, *.abc.com, and *.def.com</p>

<p>I've been looking for the ways to setup and I found:</p>

<ul>
<li><a href="https://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html" rel="nofollow noreferrer">This</a> where it taught me how to setup SSL with tomcat</li>
<li><a href="https://stackoverflow.com/a/6343059/1131470">This</a> where it taught me how to setup multiple Host with different SSL pointing at different IP address</li>
</ul>

<p>Second example is closest to what I need but the problem is all of my virtual hosts are of same IP address, the only difference is on the domain name itself, worse where most of them have a couple different alias even (eg: my d.def.com could have e.ghi.com as one of its alias).</p>

<p>So my question would be, is there anyway I could setup my multiple SSL certificates for all my virtual hosts?</p>