Get your CodeRanch badge!*
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
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: 39548
    
  27
Please post the exact text of the message. What are the HTTP and HTTPS domains? What domain is used in the certificate?


Ping & DNS - updated with new look and Ping home screen widget
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: 39548
    
  27
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
Tomcat SSL Config per domain
PayPal and Struts
CentOS java support and Apache modules
SSL Implementation not available
Junit / httpunit questions.