In this recipe, we will learn how to use a secure channel for a specific application. This is related to how your application is reached, and not to how to secure your data model, functionality, and all the features that an application comes with. Securing applications needs different considerations and aspects, which should be addressed and resolved mostly on the dev-side.
To get started, let's first create an ad-hoc
folder to run our WildFly. In a terminal window execute the following commands:
$ cd $WILDFLY_HOME $ cp -a standalone sec-std-node-2
Now it's time to create our keystore, which is used to encrypt data traffic for our specific application:
Open a new terminal window and run the following codes:
$ cd $WILDFLY_HOME $ cd sec-std-node-2/configuration $ keytool -v -genkey -alias wildfly.ssl.app -keyalg RSA -keysize 2048 -sigalg SHA1withRSA -keystore wildfly.ssl.app.keystore -storepass keystore.2015 -keypass alias.2015 What is your...