First let us see how to enable SSL in EAP6 directly. This is useful when we are using EAP6 as a standalone server and it doesn't have any load balancing in front. JBoss EAP6 provides SSL support out of the box and in this section, let's see how to enable it.
To enable SSL in EAP6, we need to create an x.509 certificate for the EAP6 server. First prepare a clean copy of JBoss EAP 6.1.0.Final
to make sure the configurations are default. After the clean copy of EAP6 server is ready for use, please start it in the standalone mode, and then deploy cluster-demo1
to the running server and then stop the server. That's all we need to do for preparation. We'll use it to test the HTTPS connection later.
Now let's create a directory called certs
in the EAP6 base path. We'll use it to store the server certificate.
Then we need to navigate to the certs
directory and use the keytool
command provided by Java Runtime Environment (JRE) to generate a certificate for...