Category Archives: ssl

secure jboss7 with ssl (https)

1. create keystore certificate for jboss user
> keytool -genkey -alias jboss -keyalg RSA

2. edit jboss configuration file standalone.xml:
– in interfaces : add new interface “local”

– in socket binding : add new socket binding “httpLocal” listening on localhost with http

– remove http connector :
<connector name=”http” protocol=”HTTP/1.1″ scheme=”http” socket-binding=”http”/>

– add local http connector (for modules having to communicate in http with each others)

<connector name=”http” protocol=”HTTP/1.1″ scheme=”http” socket-binding=”httpLocal”/>

– add new https connector

            <connector name=”https” protocol=”HTTP/1.1″ scheme=”https” socket-binding=”https” secure=”true”>
              <ssl password=”password typed in step 1″ />

in subsystem web we must finally have :