Book Image

Wildfly Cookbook

Book Image

Wildfly Cookbook

Overview of this book

Table of Contents (23 chapters)
WildFly Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Securing domain and host controller communication using HTTPS


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.

Getting ready

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...