File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Problem with implementing  SSL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Storm Applied this week in the Other Open Source APIs forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem with implementing  SSL" Watch "Problem with implementing  SSL" New topic

Problem with implementing SSL

Deepa Jayaprakash

Joined: Sep 12, 2005
Posts: 14

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"


acceptCount="10" debug="0" scheme="https" secure="true">

<Factory className=""

clientAuth="false" protocol="TLS"/>


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?

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12938
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.
Deepa Jayaprakash

Joined: Sep 12, 2005
Posts: 14
Thank you,
It worked for me.Thanks a lot.

I agree. Here's the link:
subject: Problem with implementing SSL