Multiple wildcard ssl certificate on tomcat 9

How to configure multiple wildcard certificates on tomcat 9?

I have generated wildcard certificates using certbot.

I have tried below configuration in server.xml file of tomcat 9 but for both the domain it is taking defaultSSLHostConfigName certificate.

server

hostName is interpreted awkwardly by Tomcat.

Your current config will only match exactly for the SNI name domain2.com, and it won’t match for *.domain2.com.

To do that, you need to add another SSLHostConfig for *.domain2.com, pointing to the domain2.com certificate.

Likewise, hostName="*.domain2.com" would not match for x.y.domain2.com either, you would need yet another SSLHostConfig for further levels of wildcards.

Thanks ,Its working.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.