Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

SSL on Tomcat 6 not working

Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am currently trying to configure SSL access for a client application and have done so making reference to the below sources on the web:

I setup Tomcat to run on my local machine where i generated the .keystore file specified all the required input and set the first and last name to myself. I then configured Tomcat for SSL via the server.xml file. Below is an excerpt from the server.xml used in my local environment:

The configuration works on my local machine as I am able to access https://localhost:8443/.

The problem I have is when I try to setup SSL access for an application deployed to Tomcat and running on Windows Server 2003, where the browser appears to be loading the login page until it eventually times out.

As another test I deployed the same application I was trying to access remotely on my local machine and i was able to get to the login screen on localhost via https.

I created the .keystore file on the client machine, specifying the required input as I had done on my local machine. Also, as suggested on the forums I specified the domain name as the first and last name.

Below is the configuration as found in the client's machine:

Also picked up in the forums is mention of potential issues with SSL in cases where more than one instance of Tomcat is available on an environment, the client environment contains two instances of Tomcat.

Options I have tried to fix the issue include:

  • Changing the value of the protocol tag in the connector i.e. Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol

  • Specified domain name at the first and last name prompts while creating the .keystore file

  • Please advise if you require further information and thanks in advance.

    Kind Regards

    Saloon Keeper
    Posts: 22482
    Android Eclipse IDE Tomcat Server Redhat Java Linux
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I didn't really understand that, but Tomcat is not a client, it is a server. I think your definitions need adjusting.

    The actual client (browser or whatever) for Tomcat does not need/use keystore or Tomcat configuration. All of that is located locally on the Tomcat server machine.

    You may want to browse recent message threads in this forum, though. We've had several people lately with SSL config problems and their solutions may help you.
    Don't get me started about those stupid light bulbs.
      Bookmark Topic Watch Topic
    • New Topic