Set up 2 SSL certificates in tomcat, is it possible?

0

I have two domains: .net and com.br, which are configured in the tomcat server.xml through the "Host" tag, the domain ".com.br" uses digital certificate, which I configured as follows: / p>

    <Connector SSLEnabled="true" acceptCount="10000" clientAuth="false"  threadPriority="10"

    disableUploadTimeout="true" enableLookups="false" maxThreads="250000"

    port="443" keystoreFile="certificado.jks" keystorePass="senha"

    protocol="org.apache.coyote.http11.Http11NioProtocol" scheme="https"

    secure="true" sslProtocol="TLS" />

Is it possible to set up 2 SSL certificates from different domains in the same tomcat?

    
asked by anonymous 10.08.2017 / 18:23

1 answer

0

The structure of the keystore (certificate.jks) allows you to save several certificates inside it (you can configure .net and .com.br in addition to others if you wish).

Use the following command:

$JAVA_HOME/bin/keytool -importcert -file certificate.cer -keystore keystore.jks -alias "Alias"
    
28.09.2017 / 18:06