This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes  Security Error: Domain Name Mismatch Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark " Security Error: Domain Name Mismatch" Watch " Security Error: Domain Name Mismatch" New topic
Author

Security Error: Domain Name Mismatch

russell stoneyroyd
Greenhorn

Joined: Sep 12, 2006
Posts: 9
A site I have been working on now gives this message every time going from http to https (secure connection.) The problem is this puts customers off buying on our site even though https is working the difference is one has a www. prefix while the other doesn't. Is there a simple way round this with regards to use of apache or something? Its a very annoying message and I would hate to have to get another certificate because of this.
Any help would be greatly appreciated.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41089
    
  44
Please post the exact text of the message. What are the HTTP and HTTPS domains? What domain is used in the certificate?


Ping & DNS - my free Android networking tools app
russell stoneyroyd
Greenhorn

Joined: Sep 12, 2006
Posts: 9
You have attempted to establish a connection with "soccerscene.co.nz". However, the security certificate presented belongs to "www.soccerscene.co.nz". It is possible, though unlikely, that someone may be trying to intercept your communication with this web site.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41089
    
  44
Wouldn't it be possible to prepend the "www." when the switch to HTTPS is made? After all, the application already knows when the switch happens (since it generates HTTPS URLs instead of HTTP ones).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Security Error: Domain Name Mismatch
 
Similar Threads
PayPal and Struts
Tomcat SSL Config per domain
Junit / httpunit questions.
CentOS java support and Apache modules
SSL Implementation not available