Multiple wildcard ssl certificate on tomcat 9


#1

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


#2

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.


#3

Thanks ,Its working.


closed #4

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