No problem Mousami.. I'm glad you are up and running. Thanks, Azam Khan Network Data Support Center Verizon Wireless 866-222-7114 http://ndsc.eng.vzwcorp.com
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 2:37 PM To: Tomcat Users List Subject: RE: Problem Enabling SSL in Tomcat 4.1.27 It Works :)) thanks a ton Azam, changing the path and the className did the trick. My SSL Connector now looks like this. <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8443" minProcessors="5" maxProcessors="75" enableLookups="true" acceptCount="10" debug="0" scheme="https" secure="true" useURIValidationHack="false" disableUploadTimeout="true"> <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory" keystoreFile="C:/tomcat4.1.27/jakarta-tomcat-4.1.27/.keystore" keystorePass="changeit" clientAuth="false" protocol="TLS"/> </Connector> Thanks Mousami Bhattacharya [EMAIL PROTECTED] 10/27/2004 02:13 PM Please respond to "Tomcat Users List" <[EMAIL PROTECTED]> To [EMAIL PROTECTED] cc Subject RE: Problem Enabling SSL in Tomcat 4.1.27 Mousami: There are two other differences I see between my configuration and yours.. 1) my Factory classname is "org.apache.coyote.tomcat4.CoyoteServerSocketFactory" not "org.apache.catalina.net.SSLServerSocketFactory" 2) my keystoreFile path uses FORWARD slashes instead of BACKSLASHES. That may be a potential parsing issue. Try to change your path to BACKSLASHES and see how it goes.. I have included my connector declaration below (ofcourse mine is listening on 443 not 8443 which shouldn't affect anything): <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="443" 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="webapps/ROOT/WEB-INF/keystore/.keystore" /> </Connector> Azam Khan -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 2:01 PM To: Tomcat Users List Subject: RE: Problem Enabling SSL in Tomcat 4.1.27 Thanks Azam, I tried your solution. But unfortunately , its still not working for me. I even put the .keystore file in the default user home directory. Is there some way to debug this issue ? Here's my tomcat server log , Oct 27, 2004 1:58:09 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Oct 27, 2004 1:58:10 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8443 Oct 27, 2004 1:58:19 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Oct 27, 2004 1:58:19 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Oct 27, 2004 1:58:19 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=21/50 config=C:\tomcat4.1.27\jakarta-tomcat-4.1.27\conf\jk2.properties Oct 27, 2004 1:58:19 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8443 [EMAIL PROTECTED] 10/27/2004 01:39 PM Please respond to "Tomcat Users List" <[EMAIL PROTECTED]> To [EMAIL PROTECTED] cc Subject RE: Problem Enabling SSL in Tomcat 4.1.27 Mousami: I have a similar issue before. What I did to resolve it was go through the DOS command prompt and rename "mousami.keystore" to just ".keystore" (Windows Explorer can't do it) I am not sure as to why it wouldn't take the full file name but the .keystore worked for me. Good luck! Azam Khan -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 1:34 PM To: [EMAIL PROTECTED] Subject: Problem Enabling SSL in Tomcat 4.1.27 Hi , I did the following steps to enable SSL in tomcat 4.1.27 ( with jdk 1.4.2) 1. uncommented the SSL Connector in the server.xml <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8443" minProcessors="5" maxProcessors="75" enableLookups="true" acceptCount="10" debug="0" scheme="https" secure="true"> <Factory className="org.apache.catalina.net.SSLServerSocketFactory" clientAuth="false" protocol="TLS" keystoreFile="C:\tomcat4.1.27\jakarta-tomcat-4.1.27\mousami.keystore" keystorePass="mm"/> </Connector> 2. stored the keystore file in the directory mentioned. 3. started tomcat. When I hit the url https://localhost:8443 , it seems like the browser is waiting. After waiting for sometime , it returns a "page cannot be found" error. I dont see any error logs or any kind of exception , which can tell me what is going wrong. Please help. Thanks Mousami Bhattacharya The server.xml looks something like this : <Service className="org.apache.catalina.core.StandardService" debug="0" name="Tomcat-Standalone"> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" acceptCount="100" bufferSize="2048" compression="off" connectionLinger="-1" connectionTimeout="20000" connectionUploadTimeout="300000" debug="0" disableUploadTimeout="true" enableLookups="true" maxKeepAliveRequests="100" maxProcessors="75" minProcessors="5" port="8080" protocolHandlerClassName="org.apache.coyote.http11.Http11Protocol" proxyPort="0" redirectPort="8443" scheme="http" secure="false" serverSocketTimeout="0" tcpNoDelay="true" useURIValidationHack="false"> <Factory className="org.apache.catalina.net.DefaultServerSocketFactory"/> </Connector> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" acceptCount="10" bufferSize="2048" compression="off" connectionLinger="-1" connectionTimeout="0" connectionUploadTimeout="300000" debug="0" disableUploadTimeout="false" enableLookups="true" maxKeepAliveRequests="100" maxProcessors="75" minProcessors="5" port="8009" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" proxyPort="0" redirectPort="8443" scheme="http" secure="false" serverSocketTimeout="0" tcpNoDelay="true" useURIValidationHack="false"> <Factory className="org.apache.catalina.net.DefaultServerSocketFactory"/> </Connector> <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8443" minProcessors="5" maxProcessors="75" enableLookups="true" acceptCount="10" debug="0" scheme="https" secure="true"> <Factory className="org.apache.catalina.net.SSLServerSocketFactory" clientAuth="false" protocol="TLS" keystoreFile="C:\tomcat4.1.27\jakarta-tomcat-4.1.27\mousami.keystore" keystorePass="mm"/> </Connector> .... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]