Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

ssl on named virtual hosts

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  two servers both on port 80  
Author Message
franv

External


Since: Sep 29, 2004
Posts: 2



(Msg. 1) Posted: Wed Sep 29, 2004 10:13 pm
Post subject: ssl on named virtual hosts
Archived from groups: alt>apache>configuration (more info?)

I've got 2 virtual hosts running on Mandrake 10.0. They run fine except
when it comes to ssl. I've of course googled around and found quite a few
entries that say it's not possible to do ssl on named vhosts and others
that say the contraty.

The error in my ssl_error.log is:
RSA server certificate CommonName (CN) `localhost.uT7Gad' does NOT match
server
name!?
I've searched files in my whole directory tree for the occurence of
localhost.uT7Gad without success. Any hints would be greatly
appreciated.

Thanks

 >> Stay informed about: ssl on named virtual hosts 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Wed Sep 29, 2004 10:16 pm
Post subject: Re: ssl on named virtual hosts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-09-29, franv <franv.RemoveThis@desart.ca> wrote:
 > entries that say it's not possible to do ssl on named vhosts and others
 > that say the contraty.

You can do SSL on virtual hosts, the problem is that ONLY ONE
certificate can be used at one time, this because the request need
to be decrypted _before_ the server can understand which virtual
host you want.

 > RSA server certificate CommonName (CN) `localhost.uT7Gad'

The name is inside the certificate, so it's encrypted.
Davide

--
Fear leads to anger. Anger leads to hate. Hate leads to using Windows
for mission-critical applications.
-- What Yoda *meant* to say<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: ssl on named virtual hosts 
Back to top
Login to vote
alvaro_quitar_1

External


Since: Oct 31, 2003
Posts: 86



(Msg. 3) Posted: Thu Sep 30, 2004 1:35 pm
Post subject: Re: ssl on named virtual hosts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

*** franv wrote/escribió (Wed, 29 Sep 2004 19:13:17 GMT):
 > I've got 2 virtual hosts running on Mandrake 10.0. They run fine except
 > when it comes to ssl. I've of course googled around and found quite a few
 > entries that say it's not possible to do ssl on named vhosts and others
 > that say the contraty.

You can do SSL with name based hosts. However, you must be aware that
Apache will only use 1 certificate for each IP/port combination. That's
because encryption happens one level above virtual hosts: first of all,
browser and server negotiate the secure connection and *afterwards* one or
another host is served.


--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
--<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: ssl on named virtual hosts 
Back to top
Login to vote
shadownetwork

External


Since: Sep 01, 2004
Posts: 15



(Msg. 4) Posted: Thu Sep 30, 2004 8:38 pm
Post subject: Re: ssl on named virtual hosts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 >
 > You can do SSL with name based hosts. However, you must be aware that
 > Apache will only use 1 certificate for each IP/port combination. That's
 > because encryption happens one level above virtual hosts: first of all,
 > browser and server negotiate the secure connection and *afterwards* one or
 > another host is served.


is that what is referred to as "shared ssl"?
im looking into ssl a well and read that some host offered "shared ssl".
that concept escapes me because I was under the impression that each site
or virtual host had 1 cert/ key specific to that domain. wouldn't sharing
defeat the idea of making
the cert unique to that site?<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: ssl on named virtual hosts 
Back to top
Login to vote
user614

External


Since: Oct 01, 2004
Posts: 117



(Msg. 5) Posted: Fri Oct 01, 2004 12:35 pm
Post subject: Re: ssl on named virtual hosts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

shared ssl is e.g:

<a style='text-decoration: underline;' href="https://secure.hostingproviderdomain.co.uk/customerdomain1/checkout.php" target="_blank">https://secure.hostingproviderdomain.co.uk/customerdomain1/checkout.php</a>
<a style='text-decoration: underline;' href="https://secure.hostingproviderdomain.co.uk/customerdomain2/checkout.php" target="_blank">https://secure.hostingproviderdomain.co.uk/customerdomain2/checkout.php</a>

they all share the secure.hostingproviderdomain.co.uk ssl cert


"Niteshade" <shadownetwork RemoveThis @bellsouth.net> wrote in message =
news:0Y%6d.122136$Np2.25974@bignews4.bellsouth.net...
 >=20
  > >
  > > You can do SSL with name based hosts. However, you must be aware =
that
  > > Apache will only use 1 certificate for each IP/port combination. =
That's
  > > because encryption happens one level above virtual hosts: first of =
all,
  > > browser and server negotiate the secure connection and *afterwards* =
one or
  > > another host is served.
 >=20
 >=20
 > is that what is referred to as "shared ssl"?
 > im looking into ssl a well and read that some host offered "shared =
ssl".
 > that concept escapes me because I was under the impression that each =
site
 > or virtual host had 1 cert/ key specific to that domain. wouldn't =
sharing
 > defeat the idea of making
 > the cert unique to that site?
 >=20
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: ssl on named virtual hosts 
Back to top
Login to vote
franv

External


Since: Sep 29, 2004
Posts: 2



(Msg. 6) Posted: Fri Oct 01, 2004 9:45 pm
Post subject: Re: ssl on named virtual hosts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks very much to all who answered. I'm still trying to figure out how
to make it work. Generated a new key and placed it in
/etc/httpd/conf/ssl.cert/server.crt and .key but am still getting the same
error message...

But working on it.

Again thanks

Franv

 > *** franv wrote/escribió (Wed, 29 Sep 2004 19:13:17 GMT):
  >> I've got 2 virtual hosts running on Mandrake 10.0. They run fine except
  >> when it comes to ssl. I've of course googled around and found quite a few
  >> entries that say it's not possible to do ssl on named vhosts and others
  >> that say the contraty.
 >
 > You can do SSL with name based hosts. However, you must be aware that
 > Apache will only use 1 certificate for each IP/port combination. That's
 > because encryption happens one level above virtual hosts: first of all,
 > browser and server negotiate the secure connection and *afterwards* one or
 > another host is served.
 >
 >
 > --
 > -- Álvaro G. Vicario - Burgos, Spain
 > -- Thank you for not e-mailing me your questions<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: ssl on named virtual hosts 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Any one know the maximum number of Named Virtual Hosts? - Hi all I'm just wondering if anyone here knows or knows where to find out what the max number of named virtual hosts is for both Apache 1.3 and Apache 2? Thanks in advance. -- Wayne de Villiers

Named Virtual Host Issues - I've set up named virtul host like so... NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin webmaster@a_domain.com DocumentRoot "/home/a_domain/public_html" ServerName adomain.com ErrorLog logs/a_domain-error_log Custo...

problem with setting up named virtual domains - I'm having a problem with setting up named virtual domains. The virtual domains default to the global doc path, not the doc path in the VirtualHost directive. The steps I took: 1. I commented out the global ServerName directive, leaving the global..

virtual hosts... need help please - Hi NG. I'm having trouble configuring Apache to run with more than 1 host. I've read the config describtion ofcause but when I try to do what it says I can't seem to get it to work. If anyone could post the changes they have made to their httpd.conf to...

Virtual Hosts - Hi everyone, I am new to apache, so if my question is answered in the groups faq, or on the apache web site, feel free to tell me to f**k off and read there. However I have looked through the manual, and cant find any reference to the issues im having...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

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



[ Contact us | Terms of Service/Privacy Policy ]