Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Mar 2003 11:12:35 +0900
From:      Westbay Family <westbay@seaple.icc.ne.jp>
To:        freebsd-java@FreeBSD.ORG
Subject:   keytool and Tomcat https under 1.4.1
Message-ID:  <950A308E-5B42-11D7-A432-000A9575BE46@seaple.icc.ne.jp>

next in thread | raw e-mail | index | archive | help
List,

I was excited to hear that the JDK 1.4.1 was working well with Tomcat 
and decided to give it a try.  I had no problem building JDK 1.4.1 
(after unsetting the LANG variables).

However, when trying to get Tomcat to run with the HTTPS connector, 
I've run into nothing but trouble.

First of all, running

     % keytool -keygen -alias tomcat -keyalg RSA

prompts for all the right questions then, when it should be making the 
.keystore, just spins its wheels at 0.00% CPU usage until the process 
is killed.

Second, after creating a server.keystore with JDK 1.3.1 or on Mac OSX's 
JDK 1.4.1 (tried keystores generated from both) and modifying 
conf/server.xml like so:

     <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
                port="8443" minProcessors="5" maxProcessors="75"
                enableLookups="true"
                acceptCount="100" debug="0" scheme="https" secure="true"
                useURIValidationHack="false" disableUploadTimeout="true">
       <Factory 
className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
                clientAuth="false" protocol="TLS"
                keystoreFile="conf/server.keystore"
                keystorePass="changeit"/>
     </Connector>

Neither 8080 (8180 for versions installed from ports) nor 8443 are 
accessible.  There are not warnings or exceptions thrown in logs/* to 
indicate what is wrong.  (Although if I enter keystorePass to something 
invalid, I do get exceptions telling me so.)

Has anyone else gotten Tomcat https to work with the native JDK 1.4.1?

---
Michael Westbay
Work: Beacon-IT http://www.beacon-it.co.jp/
Home:           http://www1.seaple.icc.ne.jp/westbay
Commentary:     http://www.japanesebaseball.com/forum/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?950A308E-5B42-11D7-A432-000A9575BE46>