Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jan 13, 2011 11:56 am 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:11 pm
Posts: 142
Greetings. I have two SSL sites configured under apache2, webmail.derfy.net and webmail.mmorpgmarketplace.com. Sites have self-signed certs. Server version info:
Code:
[Thu Jan 13 09:40:08 2011] [notice] Graceful restart requested, doing restart
[Thu Jan 13 09:40:14 2011] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Thu Jan 13 09:40:14 2011] [notice] Apache/2.2.12 (Ubuntu) PHP/5.2.10-2ubuntu6.6 with Suhosin-Patch mod_ssl/2.2.12 OpenSSL/0.9.8g configured -- resuming normal operations


With both sites enabled, https://webmail.derfy.net works as expected (manually adding the cert, of course). Attempting to visit https://webmail.mmorpgmarketplace.com however brings errors in IE 8 and Chrome 8 claiming the site is webmail.mmorpgmarketplace.com, but presents a cert for webmail.derfy.net. Firefox 3.6.7 works as expected, using the proper cert for both sites.

What, if anything, am I doing wrong?

root@derfy:/etc/apache2/sites-available# cat webmail.derfy.net
Code:
<VirtualHost *:443>
DocumentRoot /var/www/root/webmail.derfy.net
ServerName webmail.derfy.net
SSLEngine On
SSLCertificateFile /etc/apache2/keys/webmail.crt
SSLCertificateKeyFile /etc/apache2/keys/webmail.key
</VirtualHost>


--------

root@derfy:/etc/apache2/sites-available# cat webmail.mmorpgmarketplace.com
Code:
<VirtualHost *:443>
DocumentRoot /var/www/root/webmail.mmorpgmarketplace.com
ServerName webmail.mmorpgmarketplace.com
SSLEngine On
SSLCertificateFile /etc/apache2/keys/webmail.mmp.crt
SSLCertificateKeyFile /etc/apache2/keys/webmail.mmp.key
</VirtualHost>


Top
   
 Post subject: What version of Windows?
PostPosted: Thu Jan 13, 2011 12:00 pm 
Offline
Junior Member
User avatar

Joined: Thu Apr 23, 2009 2:32 am
Posts: 41
Website: http://www.linode.com/
What version of Windows are you using for these tests? Browsers running under Windows XP don't support SNI.

Edit: I should have specified which browsers I was referring to; this would be any version of IE under Windows XP (ref: http://en.wikipedia.org/wiki/Server_Name_Indication).


Last edited by pparadis on Thu Jan 13, 2011 12:03 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Thu Jan 13, 2011 12:01 pm 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:11 pm
Posts: 142
Windows 7 x64.


Top
   
PostPosted: Thu Jan 13, 2011 12:29 pm 
Offline
Junior Member
User avatar

Joined: Thu Apr 23, 2009 2:32 am
Posts: 41
Website: http://www.linode.com/
I don't have a Windows 7 instance handy at the moment, but both Firefox 3.6.13 and Safari 5.0.3 on Mac OS X show the correct name on each certificate, so I'm at a bit of a loss as to where the problem might be.


Top
   
 Post subject:
PostPosted: Thu Jan 13, 2011 1:15 pm 
Offline
Senior Member

Joined: Mon Dec 20, 2010 11:37 pm
Posts: 76
I've tried https://webmail.mmorpgmarketplace.com and it shows webmail.mmorpgmarketplace.com certificate with FF 3.6.13, IE 8 and Chrome 8 under Win 7 x64.


Top
   
 Post subject:
PostPosted: Thu Jan 13, 2011 1:33 pm 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:11 pm
Posts: 142
Just tried it and Chrome popped up:
Code:
This is probably not the site you are looking for!
You attempted to reach webmail.mmorpgmarketplace.com, but instead you actually reached a server identifying itself as webmail.derfy.net. This may be caused by a misconfiguration on the server or by something more serious. An attacker on your network could be trying to get you to visit a fake (and potentially harmful) version of webmail.mmorpgmarketplace.com. You should not proceed.


Uninstalled both certs from Chrome, and tried mmo again, and it still presents webmail.derfy.net's cert. Is it just a problem on my end?

Edit: I should note that with webmail.derfy.net disabled mmorpgmarketplace.com works fine. With both enabled, I get the described behavior.

Edit2: I tried a test site (https://alice.sni.velox.ch/) and got this:

Unfortunately, your client [Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10] did not send a TLS server name indication extension (RFC 4366) in its ClientHello (negotiated protocol: TLSv1), so you're probably getting warnings about certificate name mismatches.

And fixed. Unchecked 'Use SSL 2.0' in Chrome options. Sheesh, I'm an idiot.


Top
   
 Post subject:
PostPosted: Thu Jan 13, 2011 1:49 pm 
Offline
Senior Member

Joined: Mon Dec 20, 2010 11:37 pm
Posts: 76
EDIT: OP has fixed it ^^


Top
   
 Post subject:
PostPosted: Fri Jan 14, 2011 11:26 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
derfy wrote:
And fixed. Unchecked 'Use SSL 2.0' in Chrome options. Sheesh, I'm an idiot.


It might be worth noting that "Use SSL 2.0" is disabled by default in Chrome ;)


Top
   
 Post subject:
PostPosted: Fri Jan 14, 2011 12:09 pm 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:11 pm
Posts: 142
I think I enabled it under the famous 'more options = more better' mindset. :(


Top
   
 Post subject:
PostPosted: Fri Jan 14, 2011 4:22 pm 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 569
Website: http://www.mattnordhoff.com/
Crappy old crypto protocols = less better. That's why it's off by default.

I'm surprised Chrome still supports it at all; Firefox completely removed it a while back.

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
 Post subject:
PostPosted: Fri Jan 14, 2011 11:11 pm 
Offline
Senior Member

Joined: Sun Aug 02, 2009 1:32 pm
Posts: 222
Website: https://www.barkerjr.net
Location: Connecticut, USA
I think the confusion comes from lack of helpfiles. How should the end-user know that SSL 2.0 is old?


Top
   
 Post subject:
PostPosted: Sat Jan 15, 2011 9:32 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
A few strong indications that SSL 2.0 ought not be used would include the fact that it isn't checked by default, appears immediately next to "SSL 3.0", and a Google search for "SSL 2.0" finds the following phrases in the text summaries:

"...SSL 2.0 has a weak MAC construction..."
"...Windows Server 2008 using IIS 7 allows SSL 2.0 by default. Unfortunately, this means you will fail a PCI Compliance scan..."
"...Firefox 2, no longer allows you to enable SSL 2 encryption protocols due to the fact SSL 2 is not very secure..."
"...why we didn't implement SSL 2.0 in the library. There are several reasons, most important being that it has serious security..."

Aside from, of course, the following in the Chrome help files:

http://www.google.com/support/chrome/bi ... swer=95572

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Sat Jan 15, 2011 11:57 am 
Offline
Senior Member

Joined: Sun Aug 02, 2009 1:32 pm
Posts: 222
Website: https://www.barkerjr.net
Location: Connecticut, USA
Check for certificate revocation is unchecked by default - does checking it hurt security?

Also, it'd be nice if google helpfiles launched from either F1, right-click help, a tooltip, or a questionmark on the upper-right. Any one of the standard ways to get to a helpfile from within a dialog would be nice.


Top
   
 Post subject:
PostPosted: Sat Jan 15, 2011 3:22 pm 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:11 pm
Posts: 142
Change to 'Use SSL 2.0 (not recommended)' with a link to why.

Or even 'Use legacy SSL' would hint most users that it should remain unchecked.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group