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.



hostName is interpreted awkwardly by Tomcat.

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

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

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


Thanks ,Its working.

closed #4

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