Solved

SSL and Tomcat !!!!!

Posted on 2001-08-16
6
521 Views
Last Modified: 2013-11-29
how do i run my tomcat with ssl , so that i can run tomcat with https://localhost/
0
Comment
Question by:rajeevtyagi
6 Comments
 

Expert Comment

by:psvinayram
ID: 6392460
Since Tomcat is application server, link Tomcat to Apache server(or any other server). In Apache server enable SSL using OpenSSL and ModSSL. Hence u can access with https
0
 
LVL 3

Expert Comment

by:dnoelpp
ID: 6392723
That's not true. We at our project in office use Tomcat with SSL. We don't need Apache. How to set this up, I don't know however, because someone else on our project did this.
0
 
LVL 1

Accepted Solution

by:
rick2001 earned 100 total points
ID: 6393215
Follow the instructions in conf/server.xml
It worked first time for me.

        <!--
            Uncomment this for SSL support.
            You _need_ to set up a server certificate if you want this
            to work, and you need JSSE.
            1. Add JSSE jars to CLASSPATH
            2. Edit java.home/jre/lib/security/java.security
               Add:
               security.provider.2=com.sun.net.ssl.internal.ssl.Provider
            3. Do: keytool -genkey -alias tomcat -keyalg RSA
               RSA is essential to work with Netscape and IIS.
               Use "changeit" as password. ( or add keypass attribute )
               You don't need to sign the certificate.

            You can set parameter keystore and keypass if you want
            to change the default ( user.home/.keystore with changeit )
         -->
        <Connector className="org.apache.tomcat.service.PoolTcpConnector">
            <Parameter name="handler"
                value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
            <Parameter name="port"
                value="443"/>
            <Parameter name="socketFactory"
                value="org.apache.tomcat.net.SSLSocketFactory" />
        </Connector>



Richard.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 3

Expert Comment

by:dnoelpp
ID: 6393287
That's this simple! :-)
0
 

Expert Comment

by:CleanupPing
ID: 9061852
rajeevtyagi:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 20

Expert Comment

by:Venabili
ID: 9332560
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- Points for rick2001

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venabili
EE Cleanup Volunteer
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Android studio getdrawable(int) is deprecated 4 82
Java Loop 6 59
custom annotations 9 38
JavaFX TableView not displaying correctly 3 16
Often people are aiming at development of perfect Magento websites. Though, it is easier said than done. You know what’s much easier? To ruin everything. It can be done in seconds. Many of us experimented with design, tried to change some values dir…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

786 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