How to enable SSL (HTTPS) in JBoss4.2.2.GA on linux

62 views
Skip to first unread message

Ravi Chirra

unread,
Jul 15, 2009, 8:11:13 AM7/15/09
to JBoss User Group Asia, rch...@tripodtech.net
Hi

I am trying to enable the ssl in JBoss4.2.2.GA on linux.

I have done the following changes to implement the HTTPS:

1. Generated the keystore file using the following command
keytool -genkey -alias tomcat -keyalg RSA -keystore /root/rkchirra/
test.keystore -validity 365

2. Copied the "keystore" file to /jboss/server/default/conf folder

3. I have done the below change in server.xml.

<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false"
strategy="ms"
address="${jboss.bind.address}"
keystoreFile="${jboss.server.home.dir}/conf/
test.keystore"
keystorePass="changeit"
truststoreFile="${jboss.server.home.dir}/conf/
test.keystore"
truststorePass="changeit"
sslProtocol="TLS"/>

4. I have restarted the jboss server like
sh.run.sh -b IP address

5. I tried to access the website using https://www.sitename/
6. Able to get the login page
7. Able to login But

Probelms:

1. When I try to access the site using https:// the login page is
getting loaded but css is not getting applied, Only plain links and
text boxes are displaying?

2. After logging in..When I click on any URL it's asking to save by
opening an save dialog window instead of navigating to related page.
When I move the mouse on to any link, it is showing with "http://"
instead of https://



Thanks in advance...

Ravi Chirra




Reply all
Reply to author
Forward
0 new messages