You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Mathias P.W Nilsson" <ma...@snyltarna.se> on 2008/05/26 16:31:55 UTC

SSL on 4 domains

I have sat up a test SSL using this in server.xml

<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
 clientAuth="false" sslProtocol="TLS" 
 keystoreFile="d:/my-store"
keystorePass="pypass" />

This is for every https request for the tomcat server. Now I will use 4
virtual hosts that points to a domain name. Site1.com, site1.se, site2.com,
site2.se. 

My question is. 

Do I have to have 4 ssl certificate? 
How can I set up this for my virtual host?

Thanks!
-- 
View this message in context: http://www.nabble.com/SSL-on-4-domains-tp17472985p17472985.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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: SSL on 4 domains

Posted by Edmund Urbani <em...@liland.org>.
Mathias P.W Nilsson wrote:
> To clarify, The dns will point to the same server. 

Name based virtual hosting is not possible with SSL, because the SSL certificate 
  is exchanged before the webserver receives the HTTP request containing the 
host name. It would have to know the requested host name before so it could 
answer with the matching certificate.

Alternatively you could use distinct ports, but I doubt you would want your URL 
to contain a port number like https://site1.com:444/, https://site2.com:445/ etc.

Regards
  Edmund

-- 
Liland ...does IT better

Liland IT GmbH
Software Architekt
email: Edmund.Urbani@Liland.at

office: +43 (0)463 220-111  | fax: +43 (0)463 220-288
http://www.Liland.at

---------------------------------------------------------------------
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: SSL on 4 domains

Posted by "Mathias P.W Nilsson" <ma...@snyltarna.se>.
To clarify, The dns will point to the same server. 
-- 
View this message in context: http://www.nabble.com/SSL-on-4-domains-tp17472985p17473177.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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: SSL on 4 domains

Posted by Hassan Schroeder <ha...@gmail.com>.
On Mon, May 26, 2008 at 8:45 AM, Mathias P.W Nilsson
<ma...@snyltarna.se> wrote:
>
> What I have done now is when a new session is created checked the host header
> and determined wich store it is. I thought that I could point all the domain
> names to the same war file and have the ssl set up for this.
>
> Is this the same for IIS and Apache?

It's not a webserver issue, it's the way SSL works.

You need an IP address per host -- period, full stop.

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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: SSL on 4 domains

Posted by "Mathias P.W Nilsson" <ma...@snyltarna.se>.
Thanks Mark!

I'll have to go with the 4 ip addresses and 4 ssl certificates.

because it is totally different domains but the same data model. 
-- 
View this message in context: http://www.nabble.com/SSL-on-4-domains-tp17472985p17474663.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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: SSL on 4 domains

Posted by Mark Thomas <ma...@apache.org>.
Mathias P.W Nilsson wrote:
> What I have done now is when a new session is created checked the host header
> and determined wich store it is. I thought that I could point all the domain
> names to the same war file and have the ssl set up for this. 
> 
> Is this the same for IIS and Apache?
Yes.

You might be able to use a wildcarded hostname in a certificate but I am 
not sure how well supported they are. That would still leave you limited to 
host of the form *.foo.com

Mark

---------------------------------------------------------------------
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: SSL on 4 domains

Posted by "Mathias P.W Nilsson" <ma...@snyltarna.se>.
What I have done now is when a new session is created checked the host header
and determined wich store it is. I thought that I could point all the domain
names to the same war file and have the ssl set up for this. 

Is this the same for IIS and Apache?
-- 
View this message in context: http://www.nabble.com/SSL-on-4-domains-tp17472985p17474300.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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: SSL on 4 domains

Posted by Mark Thomas <ma...@apache.org>.
Mathias P.W Nilsson wrote:
> Do I have to have 4 distinct IP addresses? Why? 
Because you can only have one SSL cert per connector and each connector 
will need a unique IP/port combination.

Mark

---------------------------------------------------------------------
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: SSL on 4 domains

Posted by "Mathias P.W Nilsson" <ma...@snyltarna.se>.
Do I have to have 4 distinct IP addresses? Why? 
-- 
View this message in context: http://www.nabble.com/SSL-on-4-domains-tp17472985p17473092.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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: SSL on 4 domains

Posted by Hassan Schroeder <ha...@gmail.com>.
On Mon, May 26, 2008 at 7:31 AM, Mathias P.W Nilsson
<ma...@snyltarna.se> wrote:

> This is for every https request for the tomcat server. Now I will use 4
> virtual hosts that points to a domain name. Site1.com, site1.se, site2.com,
> site2.se.

> Do I have to have 4 ssl certificate?

Yes, and 4 distinct IP addresses.

HTH,
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
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