In this recipe, we will learn how to secure your WildFly management console at the communication protocol level. To achieve such a configuration, we will need to create a certificate which will be used to encrypt all the traffic.
To get started, let's first create an ad-hoc
folder to run our WildFly. In a terminal window run the following commands:
$ cd $WILDFLY_HOME $ cp -a standalone sec-std-node-mgmt
Now it's time to create our keystore which is used to encrypt data traffic.
Open a new terminal window and execute the following:
$ cd $WILDFLY_HOME $ cd sec-std-node-mgmt/configuration $ keytool -v -genkey -alias wildfly.management -keyalg RSA -keysize 2048 -sigalg SHA1withRSA -keystore wildfly.management.keystore -storepass keystore.2015 -keypass alias.2015 What is your first and last name? [Unknown]: WildFly Cookbook What is the name of your organizational unit? [Unknown]: Packt Publishing What is the name of your organization? ...