Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SSL implementation problem-keystore file not found

 
smitha rajgopal
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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
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
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 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