Java EE 7: SSL Security on Wildfly 10
We are going to secure both the management interface and the application access of Wildfly 10
Securing WildFly 10 with SSL
1) Create a key pair
Open a terminal window in the folder {jboss.home}/standalone/configuration and enter the following command:
In this example I choose ‘keystore_password’.
2) Set the server keystore for both ManagementRealm
and ApplicationRealm
:
3) To secure the management interface you will have to change the socket binding into https like the following:
4) To secure the applications you have to add an https-listener
. If you want to disable HTTP then delete it:
Difference between security-realm and security-domain in WildFly
References
http://stackoverflow.com/questions/32008182/wildfly-9-http-to-https
https://docs.jboss.org/author/display/WFLY10/Security+Realms find Enable SSL section
http://stackoverflow.com/questions/31036090/difference-between-security-realm-and-security-domain-in-wildfly