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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "SSL implementation problem-keystore file not found" Watch "SSL implementation problem-keystore file not found" New topic

SSL implementation problem-keystore file not found

smitha rajgopal

Joined: Sep 22, 2005
Posts: 14
Hello all ,

I am trying for 2way authentication,and i created a certificate named "server.keystore" and changed my server.xml to,
<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 i am getting the error as "file not found" in tomcat log,eventhough i have server.keystore in bin directory of java.
I am using apache 5.5.4 and jsdk1.5.Please help.

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12753
When I was fiddling with SSL I found that I needed to run the server with a command line definition of where to find the keystore. I did it in a line in catalina.bat like this:

(all on one line of course)
There is probably a better way but I couldnt find it.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

I'm doing this without the factory sub-node on both Windows and Linux.

Give this a shot.

Then triple check the path to the keystore file.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
smitha rajgopal

Joined: Sep 22, 2005
Posts: 14
The above solution all in one connector tag didn't work for me.
I am using tomcat 5.5.4 and i am not finding catalina.bat.So i wrote those lines in 'java options',which i get on click of configure and selecting java tab.Even then its not working.Any help....Please

Don't get me started about those stupid light bulbs.
subject: SSL implementation problem-keystore file not found
Similar Threads
Can't Get SSL/HTTPS To Work
Configuring server.xml in Tomcat 3
Issues in Session persistance: Apache Tomacat 5.5_16
Configure https
Port Forwarding