Perform the below steps to enable HTTPS support in JBOSS :
1. Execute the following command to generate encryption key for HTTPS.
/usr/java/jdk1.5.0_14/bin/keytool -genkey -keyalg RSA -keystore jboss.keystore -validity 3650
2. The command will ask you some information like, name company, country etc. Provide the information, keystore password and key password for mykey. The command will create a file with name jboss.keystore in your current working directory.
3. Copy the keystore file to $JBOSS_HOME/server/all/conf/ folder.
4. Edit the $JBOSS_HOME/server/all/deploy/jboss-web.deployer/server.xml file and uncomment the SSL/TLS Connector section. Also update the keystore file location and keystore password in the server.xml file as shown below.
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"maxThreads="150" scheme="https" secure="true"clientAuth="false"keystoreFile="${jboss.server.home.dir}/conf/jboss.keystore"keystorePass="server" sslProtocol = "TLS" />
5. Restart JBOSS.
0 comments:
Post a Comment