tomcat 5.5 with SSL

Posted on 2007-07-21
Last Modified: 2013-12-02
  I want to implement Tomcat5.5 server with SSL access in my office for an application developed by our office. Server will be accessed from internet by our clients. Currently we tested the application on http (Port 8080) and is working OK. Now before final release we want to implement SSL (Port 8443). I could get some of the documents and guidelines regarding implementation of the same. But could not succeed. Can any one explain the detailed process of the above.

Thank you.
Question by:winsoftech
    LVL 13

    Accepted Solution

    I've done this on Windows, with Tomcat 5.5, Java 1.5

    Using the command shell:

    Goto $JAVA_HOME\bin>
    * This supposes you have your websites in C:\websites\localhost\
    * and you have a keystore folder below websites (not in a webapp of course)
    * keytool -genkey -alias tomcat -keyalg RSA -keystore c:\websites\keystore\.keystore
    * edit server.xml
        * uncomment <Connector port="8443" />
        * Add a path to the key in the connector: keystoreFile="C:\websites\keystore\.keystore"
        * This results in something like this:

    <Connector port="8443" keystoreFile="C:\websites\keystore\.keystore"
          maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
          enableLookups="false" disableUploadTimeout="true"
          acceptCount="100" scheme="https" secure="true"
          clientAuth="false" sslProtocol="TLS" />

    * Restart Tomcat
    * test: https://localhost:8443/
    * in the end you might want to change the ports to 80 and 443 in server.xml
    LVL 1

    Expert Comment

    Be sure to loose tc-native.dll, it is said to break SSL.
    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Article by: kevp75
    Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now