Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to redirect one of my domain hosted in a domain provider to a different server where I have a Tomcat based application installed. I have purchased SSL for the server with Tomcat installed. The redirect works fine, however in the browser I see the message "server's certificate does not match the url".

share|improve this question

migrated from stackoverflow.com Jun 6 '11 at 12:58

This question came from our site for professional and enthusiast programmers.

Unless is its a wildcard cert if it was issued for www.you.com its not valid on somethingelse.you.com, whats the cert domain and the tomcat domain? – Alex K. Jun 4 '11 at 13:19
Do you mean you use an internal redirect? If so, you need to have your certificate installed in the first receiving server. If you do an external redirect: do you still get the error going to that server directly? – Wrikken Jun 4 '11 at 13:21

What this warning means is, that the CN of the certificate being presented by the server during SSL handshake does not match the URL the user requested.
To be honest I am not quite sure how you network configuration should change.
As a first comment, you could just ignore this, since you already purchased the certificate.
But if the configuration on the client side is stricter (i.e. to validate the host name, your server would not be accessed as "untrusted").
I suspect that the certificate is issued to an IP and not an FQDN.
If it was issued to an FQDN and your server's IP (you redirect the request to) resolves to that FQDN you would have no such issue.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.