• 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 implementation-Tomcat

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 5399
1
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If I am not wrong then Tomcat does not support SSL (at least tomcat 4.X)
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am going to move this to the more appropriate Tomcat forum.
Thanks
Mark
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this link: Tomcat SSL
Rene
[ October 25, 2003: Message edited by: Rene Larsen ]
 
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic