Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VirtualHost SSL

Status
Not open for further replies.

kumar2222

IS-IT--Management
May 30, 2008
7
CA
Hi,

Running Apache/2.2.22 on a Debian box.

Simplified the problem is this:

I want and to work on the same server. I have done this using virtualHost. However I want to be redirected to
The problem is when I try I am getting the SSL certificate for This causes a "Connection is Untrusted" error.

How can I avoid this?

Thank you for any help.

Kumar
Virtech Computer Consulting and Networking
 
Use a different IP for the site you want the certificate to be on.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
With traditional SSL, no what you want to do is not possible. This is because the server name is NOT communicated as part of the transaction, only the IP address. Consequently, named virtual hosts will not be distinguished with SSL.

There is a more modern protocol that is slowly gaining ground, using SNI (server name indication). The browser must also support this for it to work, which means older systems using things like IE6 will not.

See this archived post, which also references an earlier thread on this subject. It explains how I got SNI working:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top