Singapore Flyer

Monday, October 19, 2015

How to install SSL on Jboss 7.1

I have a valid pfx certificate file. First we need to change it to a keystore



Used the below command to generate the keystore file.
==============================================================

keytool -importkeystore -deststorepass <Name> -destkeystore "dev.keystore" -srckeystore C:\Users\user\Desktop\SSL\NewWildCard.pfx -srcstoretype PKCS12 -srcstorepass <Password>

Updated the below lines in standalone.xml ($JBOSS_HOME/standalone/configuration) file in Jboss to enable SSL
======================================================================

After  <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/> line added the below lines.


<connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true">
                <ssl name="https" password="<password>" certificate-key-file="/root/dev.keystore"/>
            </connector>

By default, it will listen on https://domainname.com:8443