• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SSL Redirect Port in Tomcat 4

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have one web application configured for transport gurantee as CONFIDENTAIL.
When this webapp is accessed using HTTP scheme tomcat do not automatically redirects it to SSL scheme/port and browser keeps on sending request no response from server. i dont know what should i do for this ur help will be valuable

Thanking in advance
 
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
If I understand what you are trying, I don't think Tomcat can force the connection to turn into a SSL connection if the original request is HTTP to port 80. Try sending a redirect using HTTPS - that way the browser should be able to switch to SSL.
Bill
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I'm currently having some SSL problems and no one has responded to my previous post... so I'm hoping you guys can help me out.

I'm using tomcat as a standalone and I followed the SSL instructions .. generating a keystore ... tweaked the server.xml but my ssl connection only works at: https://localhost
and not at :https://www.mydomain.com

Thanks for the help!!

For your post I'd agree with William. http means :80 so unless u have ssl configured for that port it needs a https redirect
 
William Brogden
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

I'm using tomcat as a standalone and I followed the SSL instructions .. generating a keystore ... tweaked the server.xml but my ssl connection only works at: https://localhost
and not at :https://www.mydomain.com


The first question that occurs to me is - do you have a firewall that is blocking port 443?
Bill
 
lawrence mier
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the port 443 open.

server.xml setup:

<Connector port="80"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" />

<Connector port="443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" debug="0" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile=".keystore" keystorePass="password" />

I have jsvc setup so I have access to priveleged ports without running tomcat as root.

I created a local certificate

When I access https://localhost it works.

When I access https://www.mydomain.com it doesn't work.

Thanks for the help!!!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic