tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefán F. Stefánsson <ste...@decode.is>
Subject RE: Multiple Tomcats with SSL?
Date Fri, 17 Nov 2000 08:53:52 GMT
I don't think you can do that with Tomcat 3.1 (running standalone it
doesn't support SSL and I haven't tried connecting it to an SSL Apache).
So I think your best bet would be to get Tomcat 3.2b7.  I know... it's
still beta but everyone around here seem to be saying that it's much
better than even the release of 3.1 (apart from the fact that 3.1
doesn't support SSL on the standalone).

If you decide to use 3.2 you have to configure your server.xml so that
you add connectors for each port.  Each connector tag needs to look
something like this:

        <Connector
className="org.apache.tomcat.service.PoolTcpConnector">
            <Parameter name="handler"
 
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
            <Parameter name="port"
                value="443"/>
            <Parameter name="socketFactory"
                value="org.apache.tomcat.net.SSLSocketFactory" />
	      <Parameter name="secure"
		    value="true"/>
	      <Parameter name="clientAuth"
	          value="false"/>
	      <Parameter name="keystore"
	          value="C:/Documents and Settings/stefanf/.keystore" />
	      <Parameter name="keypass"
		      value="mypassword" />
        </Connector>

There are a few things to keep in mind if you do this:
1)	You have to build Tomcat from source and make sure you have all
JSSE jars in your classpath.  The binary version is built on a setup
that does not have JSSE (nobody seems to know why...)
2)	Before you build the source version of Tomcat you need to change
your java.security file.
3)	You need to generate a keystore which keeps your server
certificate under the alias Tomcat.

These information can be found in the server.xml document.  Just check
it out if you need more info.

Regards, Stefan

-----Original Message-----
From: Terence Ang [mailto:TERENCE.ANG@gurubase.com]
Sent: 17. nóvember 2000 01:53
To: tomcat-user@jakarta.apache.org
Subject: Multiple Tomcats with SSL?


Dear All,

Could anyone suggest whether there is a way to allow multiple instance
of 
tomcats with SSL so that the developer could develop under different
ports with 
SSL enabled?

e.g. http://develop.someserver.com:8001
     http://develop.someserver.com:8002
     http://develop.someserver.com:8003

We are using
a. RedHat 6.2
b. Tomcat 3.1 (Running standalone currently)
c. Apache 1.3.12/ModSSL 2.6.6/OpenSSL 0.9.5a (Installed but not enabled)

Thanks!


Mime
View raw message