GeeCON Prague 2014*
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
Author

SSL implementation-Tomcat

Anil Kadavil
Greenhorn

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"
enableLookups="true"
acceptCount="10" debug="0" scheme="https" secure="true">
<Factory className="org.apache.catalina.net.SSLServerSocketFactory"
clientAuth="false" protocol="TLS"/>
</Connector>
-->
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
Anil
R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5371
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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Simone Berg
Greenhorn

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
Greenhorn

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
Rene
[ October 25, 2003: Message edited by: Rene Larsen ]

Regards, Rene Larsen
Dropbox Invite
 
GeeCON Prague 2014
 
subject: SSL implementation-Tomcat