hey friends, I am trying to make tomcat 4.1.31 run on centos4.0 with ssl .The java version on my system is JDK1.4.2_06
java version "1.4.2_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03) Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode) I first generated the certificate/key through the below command $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA and the keypassword i gave is "changeit"(the default for tomcat) and then I put these entries in server.xml (copied from the server.xml.2006-03-06.15-08-26) <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" /> </Connector> I know for running tomcat on ssl you need JSSE but on the sun java site it is mentioned that with JDK1.4.x JSSE is inbuilt and there is no separate package of JSSE available for JDK1.4.x on the site. The logs of tomcat(catalina.out) shows ar 9, 2006 2:27:35 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-82 Mar 9, 2006 2:27:36 PM org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.io.IOException: Cannot recover key at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init( JSSE14SocketFactory.java:127) at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket( JSSESocketFactory.java:88) at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint( PoolTcpEndpoint.java:259) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java :137) at org.apache.coyote.tomcat4.CoyoteConnector.initialize( CoyoteConnector.java:1238) at org.apache.catalina.core.StandardService.initialize( StandardService.java:532) at org.apache.catalina.core.StandardServer.initialize( StandardServer.java:2199) at org.apache.catalina.startup.Catalina.start(Catalina.java:462) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) Catalina.start: LifecycleException: Protocol handler initialization failed: java.io.IOException: Cannot recover key LifecycleException: Protocol handler initialization failed: java.io.IOException: Cannot recover key at org.apache.coyote.tomcat4.CoyoteConnector.initialize( CoyoteConnector.java:1240) at org.apache.catalina.core.StandardService.initialize( StandardService.java:532) at org.apache.catalina.core.StandardServer.initialize( StandardServer.java:2199) at org.apache.catalina.startup.Catalina.start(Catalina.java:462) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) Catalina.stop: LifecycleException: This server has not yet been started LifecycleException: This server has not yet been started at org.apache.catalina.core.StandardServer.stop(StandardServer.java :2166) at org.apache.catalina.startup.Catalina.start(Catalina.java:494) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) I am running the tomcat without ssl on port 82 because I am using Oracle 10G 10.1.3.0 on the same system. Please let me know if you need any further inputs and what wrong I am doing. Thanks & Regards Ankush Grover