| Author |
Problem with implementing SSL
|
Deepa Jayaprakash
Greenhorn
Joined: Sep 12, 2005
Posts: 14
|
|
Hello, I'm trying to set up SSL using tomcat 5.5.12.Given that I'm using Java 5.0 (JDK&JRE 1.5.06) I haven't bothered with JSSE (Java Secure Sockets Extension), since it's supposed to be included in the JRE as of version 5.0. Using keytool I have created a keystore for localhost with the password "changeit" and I have uncommented the SSL Connector in the server.xml file, leaving the SSL port to 8443. When I try to access https://localhost:8443, i get "Page not found screen". I could not get any help from the Tomcat logs. I checked this command "netstart -an" in command prompt ,port 8443 was not listed. In the how_to which i downloaded from apache site ,says that the follwing should be present in server.xml file <Connector className="org.apache.catalina.connector.http.HttpConnector" 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"/> </Connector> But our server.xml file has only the following, <Connector port="8443" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> The factory tag is missing,if it should be added,please let me know in which tomcat folder i should add "org.apache.catalina.SSLServerSocketFactory' jar file. Log file doesn't show any error Is there something I am missing? Could someone suggest a solution? Thanks
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12268
|
|
It has been a while, but when I got Tomcat 5 running with SSL, I had to include a declaration of where to find the store in the JAVA_OPTS setting in catalina.bat (all on one line in the original) In server.xml I had to add keystoreFile and keystorePass attributes to the Connector for the port. Bill
|
Java Resources at www.wbrogden.com
|
 |
Deepa Jayaprakash
Greenhorn
Joined: Sep 12, 2005
Posts: 14
|
|
Thank you, It worked for me.Thanks a lot. Deepa
|
 |
 |
|
|
subject: Problem with implementing SSL
|
|
|