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

SSL implementation-Tomcat

Anil Kadavil

Joined: Oct 09, 2003
Posts: 1
Hi everybody,
I have been trying to implement SSL in Tomcat in port 8443 but when i remove the comment from the portion in server.xml
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8443" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0" scheme="https" secure="true">
<Factory className=""
clientAuth="false" protocol="TLS"/>
and try to start tomcat it isn't getting started, works fine if i replace the comment back.
Can anyone help me out on this
advance thanks
R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5382
If I am not wrong then Tomcat does not support SSL (at least tomcat 4.X)

"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

I am going to move this to the more appropriate Tomcat forum.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Simone Berg

Joined: Oct 20, 2003
Posts: 2
Did you create you server certificate yet? Depending on which directory you store it in you have to tell tomcat where it can find it.
The jdk has a keytool that you can use to create the certificate
I hope that helps.
K Owusu

Joined: Oct 23, 2003
Posts: 3
If you've already got an answer to your question, then ignore this.

Tomcat does support SSL. However, there are several steps involved in getting the SSL to work.
Rough Steps:
- create your keys using the keytool.exe utility from sun (I believe it comes with jdk)
- create a Certificate Signature Request (a csr) using the key you created
- either commercial-sign or self-sign the certificate
(you can use self-signed certficate for testing purposes)
- import the certificate into a keystore (using the keytool.exe utility)
- update server.xml
Have you successfully performed all these steps?
Also check the log files to see what you are getting. Sometimes tomcat fails to start if you have a wrong certificate or keystore. The log should tell you.
You may also need to download jsse and place the jar files in appropriate places.
good luck.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Try this link: Tomcat SSL
[ October 25, 2003: Message edited by: Rene Larsen ]

Regards, Rene Larsen
Dropbox Invite
I agree. Here's the link:
subject: SSL implementation-Tomcat
It's not a secret anymore!