• We Code
  • We Design
  • We Develope
  • We Write
  • We Share


Monday, June 27, 2016

HTTPS Configuration In Wildfly 9.0.0 Red Hat server

Step 1: Add below tag in your web.xml


Step 2: Create a keystore using java keytool
1.       open your Command Prompt
2.       run below command
> keytool -genkey -alias javacourseblog -keyalg RSA -keystore E:\javacourseblog/keystore.jks -validity 360

You will show the simmiler result. It will ask for the Passwords, first name, last name , organizations and other information. Please fill the correct information in it and choose password very carefully.

Then open your wildfly's  standalone.xml and add 

below tag in your <security-realms> tag

<security-realm name="SslRealm">
            <keystore path="keystore.jks" relative-to="jboss.server.config.dir" keystore-password="password" />

Step 3: Open your wildfly's  standalone.xml and add below tag in your <server name> tag

<https-listener name="default-ssl" socket-binding="https" security-realm="SslRealm" enabled-protocols="SSLv2, SSLv2Hello, TLSv1, TLSv1.1, TLSv1.2" />

Step 4: Open your wildfly's  standalone.xml and go to your socket-binding-group and replace below tag

<socket-binding name="http" port="${jboss.https.port:8443}" />

 <socket-binding name="https" port="${jboss.https.port:443}"/>


Post a Comment