Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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 ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Not able to enable SSL on Apache Tomcat

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

First of all, I do apologise if the thread has not been posted to right forum but I couldn't find any other related forum.

My quandary is I am trying to enable SSL on my Apache tomcat server for it to accept requests made through urls preceding with https:

I generated a keystore using a keytool and gave the path of keystore file and other attributes in the server.xml as below:



Under normal circumstance it works without including keystore it works fine but when I comment the original file and add the section:

<Connector port="8080" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
keystoreFile="C:/Users/uday/.keystore" keystorePass="6t6bdbqN"
clientAuth="false" sslProtocol="TLS" />


it does not start within given server start up time of 45 secs and also when extended to 70 sec.

Can anybody help here please?

Regards,
Arun
 
Saloon Keeper
Posts: 22289
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adding SSL support to Tomcat does not noticeably extend the amount of time it takes Tomcat to start up. Tomcat itself usually takes less than 3 seconds to initialize, so most of the startup time is in the webapps, not in Tomcat.

I think your problem is in assigning the SSL (https) connector to port 8080. Port 8080 is the port for non-SSL (regular http) communications. The normal port for https connections is 8443. You cannot use the same port for both types of connections.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic