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