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