Just use a multi-domain name or wildcard certificate directly, so that a server can configure multiple domain names SSL.
If the tomcat environment supports configuring multiple independent SSL certificate references:
& lt connector? port="443 "? protocol="org.apache.coyote "?
maxThreads=" 150 "? SSLEnabled="true "? & gt
& ltSSLHostConfig? hostName = " www . AAA . com " & gt;
& lt certificate? certificate keystorefile = " cert/AAA . jks "? certificateKeystorePassword = " password 1 "? type="RSA "? /& gt;
& lt/SSLHostConfig & gt;
& ltSSLHostConfig? hostName = " www . BBB . com " & gt;
& lt certificate? certificate keystorefile = " cert/BBB . jks "? certificateKeystorePassword = " password 2 "? type="RSA "? /& gt;
& lt/SSLHostConfig & gt;
& lt/Connector & gt;
& lt/Connector & gt; & lt Moderator? name="www.aaa.com "? appBase="webapps "? unpackWARs="true "? AutoDeploy = "true">& lt context? Path = ""? docBase="aaa "? reloadable="true "? debug="0 "? /& gt; & lt/Host & gt;
& lt Moderator? name="www.bbb.com "? appBase="webapps "? unpackWARs="true "? AutoDeploy = "true">& lt context? Path = ""? docBase="bbb "? reloadable="true "? debug="0 "? /& gt; & lt/Host & gt;