• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Problem with implementing SSL

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

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"

enableLookups="true"

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

<Factory className="org.apache.catalina.net.SSLServerSocketFactory"

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

</Connector>


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?

Thanks
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
Bill
 
Deepa Jayaprakash
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you,
It worked for me.Thanks a lot.

Deepa
 
This looks like a job for .... legal tender! It says so right in this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic