You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by John Papas <js...@gmail.com> on 2008/04/02 15:37:33 UTC

[users@httpd] One IP, several vhosts with distinct SSL certificates

I have multiple vhosts on the same IP an each one has a different
certificate for SSL, eg.:

* certificate #1 for vhost1.mydomain.com
* certificate #2 for vhost2.mydomain.com
...
* certificate #N for vhostN.mydomain.com

Unfortunately Apache always serves the first certificate, whatever the
requested domain is, so the browsers complain!

Is there a way to go around this?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] One IP, several vhosts with distinct SSL certificates

Posted by Michael Clark <mi...@metaparadigm.com>.
Serge Dubrouski wrote:
> That's not an Apache problem, that is how SSL works. It's impossible
> to have several SSL certificates on the same IP_address:Port_number.
>   

If you use latest openssl and add the SNI (servername extension) patch
to apache then you can. See this thread:

  http://www.mail-archive.com/dev@httpd.apache.org/msg39033.html

Apparently:

   "FireFox 2.x, IE 7.x Opera 9.x are able to work with SNI"

~mc

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] One IP, several vhosts with distinct SSL certificates

Posted by Serge Dubrouski <se...@gmail.com>.
That's not an Apache problem, that is how SSL works. It's impossible
to have several SSL certificates on the same IP_address:Port_number.

On Wed, Apr 2, 2008 at 7:37 AM, John Papas <js...@gmail.com> wrote:
> I have multiple vhosts on the same IP an each one has a different
>  certificate for SSL, eg.:
>
>  * certificate #1 for vhost1.mydomain.com
>  * certificate #2 for vhost2.mydomain.com
>  ...
>  * certificate #N for vhostN.mydomain.com
>
>  Unfortunately Apache always serves the first certificate, whatever the
>  requested domain is, so the browsers complain!
>
>  Is there a way to go around this?
>
>  ---------------------------------------------------------------------
>  The official User-To-User support forum of the Apache HTTP Server Project.
>  See <URL:http://httpd.apache.org/userslist.html> for more info.
>  To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>  For additional commands, e-mail: users-help@httpd.apache.org
>
>



-- 
Serge Dubrouski.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org