This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "SSL implementation problem-keystore file not found" Watch "SSL implementation problem-keystore file not found" New topic
Author

SSL implementation problem-keystore file not found

smitha rajgopal
Greenhorn

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"
enableLookups="true">
acceptCount="10" debug="0" scheme="https" secure="true"<
<Factory className="org.apache.catalina.net.SSLServerSocketFactory"
keystoreFile="c:\progs\java\jdk1.5.0\bin\server.keystore"
keystorePass="changeit"
clientAuth="false" protocol="TLS"/>
</Connector>


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.

Thanks
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
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.
Bill
Ben Souther
Sheriff

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
Greenhorn

Joined: Sep 22, 2005
Posts: 14
Hello,
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

Thanks,
Deepa
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: SSL implementation problem-keystore file not found
 
Similar Threads
Configuring server.xml in Tomcat 3
Port Forwarding
Can't Get SSL/HTTPS To Work
Issues in Session persistance: Apache Tomacat 5.5_16
Configure https