SSL Configuration with Jboss server

The below post describes the steps to configure SSL for your JBoss Server.

Steps:

1:- Create a self signed certificate by using the keytool utility.

a: Create a private key – public key pair.

keytool –genkey –alias mykey –keypass password –keystore identity.jks –storepass password

b: Self sign the certificate.

keytool –selfcert –alias mykey –keypass password –keystore identity.jks –storepass password

2:-  Navigate to the JBOSS_HOME/server/<server-profile>/deploy/jbossweb.sar.

Open the server.xml file. By default the SSL entry in the file is commented out.

Uncomment the SSL configuration entry and provide the details about the keystoreFile and the keystorePass

The SSL related entry in the server.xml file would look like below.

 

<Connector protocol="HTTP/1.1" SSLEnabled="true"
port="8443" address="${jboss.bind.address}"
scheme="https" secure="true" clientAuth="false"
keystoreFile="G:SSLCertsidentity.jks"
keystorePass="password" sslProtocol = "TLS" />

 

3:- Access the server  on HTTPS now using the below URL.

https://localhost:8443/web-console

Further reading:

http://community.jboss.org/wiki/sslsetup

Cheers,

Wonders Team. 🙂