Securing the WildFly console using HTTPS

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.

Getting ready

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.

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

Get WildFly Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.