You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rodrigo Ruiz <rr...@gridsystems.com> on 2006/10/25 11:18:09 UTC

Server certificate configuration for multiple IP addresses and domain names

Hi all,

I have been trying to configure certificates for a server that has
several IP addresses, and several domain names, but I think I have
reached a limitation on Tomcat security features (or maybe a Java one, I
don't know).

I think the problem can be experienced even with a server with a single
IP address and a single domain address.

I would like my server to present a different certificate depending on
the address through which it is being invoked. Specifically, I would
like my server to present different certificates for the following
alternatives:

- 127.0.0.1
- host IP address
- localhost
- host.domain.name
- alias.domain.name

That is, depending on the address/name the client used to make the
request, present an appropriate certificate. I know I can instruct
Tomcat to present a different certificate for different IP addresses,
but in this case I want it to present different certificates for the
same address.

I don't know if this is possible with the current Tomcat version, or it
is already in the roadmap of Tomcat for a future version, or even if it
has been reported. I have searched on this forum archives and into Jira,
and found similar questions and bug reports, but not this one.

I just wanted to check this subject here before submitting a request for
this feature in Bugzilla.

Thanks in advance,
-- 
-------------------------------------------------------------------
GRIDSYSTEMS S.A.              Rodrigo Ruiz
Parc Bit - Son Espanyol       R & D
07120 Palma de Mallorca       e-mail : rruiz AT gridsystems DOT com
Baleares - EspaƱa             Tel    : +34 971 435 085
http://www.gridsystems.com/   Fax    : +34 971 435 082
-------------------------------------------------------------------

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Server certificate configuration for multiple IP addresses and domain names

Posted by Pid <p...@pidster.com>.
If you're talking about SSL, then this is the common misunderstanding
about about how the SSL layer works.

SSL is negotiated before HTTP - where the HOST header resides - so the
server has no way of knowing during the SSL connection phase which host
to talk to, so selects the default certificate.

in short SSL only understands how to connect to an IP and port, it
doesn't understand the differences between hosts that run on the same IP
and port combo.

You should be able to configure a cert for each of the two IPs you
specify, but you'll need to assign a different IP or port to each of the
other domain names in order to use separate certs.




Rodrigo Ruiz wrote:
> Hi all,
> 
> I have been trying to configure certificates for a server that has
> several IP addresses, and several domain names, but I think I have
> reached a limitation on Tomcat security features (or maybe a Java one, I
> don't know).
> 
> I think the problem can be experienced even with a server with a single
> IP address and a single domain address.
> 
> I would like my server to present a different certificate depending on
> the address through which it is being invoked. Specifically, I would
> like my server to present different certificates for the following
> alternatives:
> 
> - 127.0.0.1
> - host IP address
> - localhost
> - host.domain.name
> - alias.domain.name
> 
> That is, depending on the address/name the client used to make the
> request, present an appropriate certificate. I know I can instruct
> Tomcat to present a different certificate for different IP addresses,
> but in this case I want it to present different certificates for the
> same address.
> 
> I don't know if this is possible with the current Tomcat version, or it
> is already in the roadmap of Tomcat for a future version, or even if it
> has been reported. I have searched on this forum archives and into Jira,
> and found similar questions and bug reports, but not this one.
> 
> I just wanted to check this subject here before submitting a request for
> this feature in Bugzilla.
> 
> Thanks in advance,


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org