File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlets and SSL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets and SSL" Watch "Servlets and SSL" New topic

Servlets and SSL

Tod Checker

Joined: Feb 19, 2004
Posts: 27
I was wondering if anyone has an example of a servlet which uses ssl?
I got this one from "more servlets and java server pages", but when I execute it my browser hangs for a while then gets redirected to an error page. I am using the last version of IE and Mozilla, and my web server is tomcat. Do I need to make any additional configurations to tomcat? If possible I would like to handle this programmatically.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
As I understand it, the stock installation of Tomcat 4 is not SSL capable. There is a section on what you need to do in the
of the normal Tomcat installation.
Tod Checker

Joined: Feb 19, 2004
Posts: 27
I follow the instructions and reconfigured tomcat, everything works perfectly, thanks.
I agree. Here's the link:
subject: Servlets and SSL
It's not a secret anymore!