Monday 2 May 2011

Enabling HTTPS on JBOSS 5.0.1GA

Steps to configure https listener on JBOSS 5.0.1GA

                1.Edit  /server/default/deploy/jbossweb.sar/server.xml . uncomment  HTTPS listener tag.
           
                 eg:- 
<Connector protocol="HTTP/1.1" SSLEnabled="true"
                                         port="8443" address="${jboss.bind.address}"
                                        scheme="https" secure="true" clientAuth="false"
                                         keystoreFile="${jboss.server.home.dir}/conf/chap8.keystore"
                                            keystorePass="rmi+ssl" sslProtocol = "TLS" />


                  2.Generate key file using key tool ,can find inside jdk bin.
                  
                    eg  :- go to folder  jdk bin and execute following command.
                           ./ keytool -genkey -alias rmi+ssl -keyalg RSA -keystore chap8.keystore -validity 3650    

                  3.restart server.


                  note : - With above configuration application can be accessed with url   https://<ipadress>:8443/<context-path>

No comments:

Post a Comment