您好!
直接使用多域名或者通配符證書就可以了,這樣可以實現壹臺服務器配置多個域名SSL。
如果tomcat環境支持配置多個獨立的SSL證書參考:
<Connector?port="443"?protocol="org.apache.coyote."?maxThreads="150"?SSLEnabled="true"?>
<SSLHostConfig?hostName="www.aaa.com">
<Certificate?certificateKeystoreFile="cert/aaa.jks"?certificateKeystorePassword="password1"?type="RSA"?/>
</SSLHostConfig>
<SSLHostConfig?hostName="www.bbb.com"> <Certificate?certificateKeystoreFile="cert/bbb.jks"?certificateKeystorePassword="password2"?type="RSA"?/> </SSLHostConfig></Connector>
</Connector><Host?name="www.aaa.com"?appBase="webapps"?unpackWARs="true"?autoDeploy="true"><Context?path=""?docBase="aaa"?reloadable="true"?debug="0"?/></Host>
<Host?name="www.bbb.com"?appBase="webapps"?unpackWARs="true"?autoDeploy="true"><Context?path=""?docBase="bbb"?reloadable="true"?debug="0"?/></Host>