We help IT Professionals succeed at work.

Are wildcard SSL certificates supported under Tomcat 6.x?

Last Modified: 2013-12-02

I have a custom app that does not accept HTTPS -> HTTP port translation well (it throws a URL response of http: back into the browser), and i'm thinking my next best option is to attempt to install a certificate into tomcat instead, and connect HTTPS to the back end service directly. (unless someone has a better idea  on how to get the app to accept https even though the intranet connection will be over http).

Will tomcat 6.x accept a wildcard certificate?  I seem to remember finding that answer to be no in the past, however i cannot find a clear answer on the web.  To go with a non wildcard certificate, we'd be forced to purchase a new certificate specifically for this app, which i don't want to do as it is not used that much.
Watch Question

Top Expert 2010


Is this "Custom app" supposed to handle just https traffic, or both HTTP and HTTPS? If the latter do you have two connectors defined in your server.xml, on different ports. Either way does the secure connector have a secure="true"  redirectPort="443" in it's definition?

On the alternative suggestion front, you could stick an Apache HTTPD instance in front of your Tomcat and use either mod proxy or alias to handle the  Browser -> HTTPS (Apache) -> HTTP (Tomcat) -> (Apache) HTTPS -> Browser translations e.g. The following would force any traffic, from a browser, for your App to be sent in HTTPS, and proxy it on to the tomcat in HTTPS:

<VirtualHost *:443>

  SSLEngine on
  SSLCertificateFile       /path/to/server.crt
  SSLCertificateKeyFile /path/to/server.key
  SSLCACertificatePath /path/to/ssl.crt
  RewriteCond %{HTTPS} !on
  RewriteRule  yourWebApp      https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
  RewriteRule (yourWebApp.*) http://%{SERVER_NAME}:8080/$1 [P]


The above solution will loose some performance.
Top Expert 2010
This one is on us!
(Get your first solution completely free - no credit card required)

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.