In this recipe, we will learn how to secure the communication between the domain controller and the host controller. To achieve this, we need to create a keystore and certificate, one for each controller, including the domain.
To get started, let's first create the ad-hoc
folders to run our WildFly instances: one master and two hosts. In a terminal window execute the following:
$ cd $WILDFLY_HOME $ cp -a domain sec-dmn-master $ cp -a domain sec-dmn-node-1 $ cp -a domain sec-dmn-node-2
We also better prepare our configuration folders to have the proper configuration files, using the preinstalled ones as templates and executing the following:
$ cd $WILDFLY_HOME $ mv sec-dmn-master/configuration/host-master.xml sec-dmn-master/configuration/host.xml $ mv sec-dmn-node-1/configuration/domain.xml sec-dmn-node-1/configuration/domain.xml.unused $ mv sec-dmn-node-1/configuration/host-slave.xml sec-dmn-node-1/configuration/host...