Monday, 11 May 2015

How to implement the HTTPS protocol in jboss for the web application

By default, all the web applications deployed on any App/Web server will be accessed through HTTP protocol. HTTPS protocol is same as HTTP, but with security implemented in it. HTTPS is a secured protocol, used to make a secured login. To achieve this, we need to create a self-signed certificate or use the third party/vendor created certificates and use it in your applications.

Add or modify the following piece of code into the standalone.xml file

<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
 <connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true">
  <ssl password="ppcseportal" certificate-key-file="C:\Temp\certs\ks" verify-client="false" certificate-file="C:\Temp\certs\ks"/>
 </connector>
 <virtual-server name="default-host" enable-welcome-root="true">
  <alias name="localhost"/>
  <alias name="abc.com.au"/>
  <alias name="example.com"/>
 </virtual-server>
</subsystem>

No comments:

Post a Comment