Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

SSL implementation problem-keystore file not found

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
smitha rajgopal
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!