Thursday, November 5, 2015

Setting up Certificate for enabling SSL in JBOSS 4 and JBOSS 5

The instructions below is for setting up a development Certificate in jboss. This is required for enabling a SSL connection for our jboss app server.
Instructions:
1. open a command prompt window
2. Go to your ATG jboss Conf directory. i.e.: (C:\atg\jboss-4.0.3SP1\server\atg\conf)
3. Then run the following command "keytool -keystore keystore -alias jboss -genkey -keyalg RSA"
4.  While in the Keytool program:  Provide a password that you will remember:  example:  "changeit"
5. Then just press Enter on all the other functions. No need to provide any data in those fields.
6. Finally Answer "y" to continue.
7. Now go to your jboss Tomcat deploy directory: i.e.: (c:\atg\jboss-4.0.3SP1\server\atg\deploy\jbossweb-tomcat55.sar\)
8. Open the "server.xml" file in a text editor of your choosing.
9. uncomment and edit the following. Make sure you use the same "keystorePass" as the one you entered earlier in step 4:
  <Connector port="8443" address="${jboss.bind.address}"
          maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
          emptySessionPath="true"
          scheme="https" secure="true" clientAuth="false"
          keystoreFile="${jboss.server.home.dir}/conf/keystore"
          keystorePass="changeit" sslProtocol = "TLS" />
10. Start your ATG server, and port 8443 should now be your SSL enabled URL. You should now be able to use your browser to access the following    URL: "https://localhost:8443"

No comments:

Post a Comment