Implementing SSL

srujanmiryala used Ask the Experts™
       In my application i'm using struts 2, spring and hibernate. Now im asked to develop a https page for payment integration in our application. I had never worked on it before Could any one please suggest me a good way to implement it
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Which server our using ???


I'm using Jboss AS 5.1.0

Execute the following command on the console to generate the Key.

Step 1: keytool -genkey -alias tomcat -keyalg RSA

<System will ask for Keystore Password, Your Name,  Company, City State, etc..> Answer these questions

Step 2: Uncomment the following Connector on Server.xml and update the highlighted path.

     <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
                maxThreads="150" scheme="https" secure="true"
            keystoreFile="/home/kamran/.keystore" keystorePass="changeit"
                clientAuth="false" sslProtocol="TLS" compression="on" />

Step 3:
Access your application using https protocol, with 8443 port

For Eg:<yourapplication>/

Reference URL:

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial