• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

http to https

 
sdeepa redd
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We use Jboss and Apache. Right now we use http protocol.
If we want to move to https what changes are needed? Is it configurable on the server or
does it require any code related changes in our application.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64181
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"deepadeepa deepa", please check your private messages for an important administrative matter.
 
Liviu Grigorescu
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the simplest setup you just have to configure the server.

Create keystore to hold the self signed certificate used by the server to perform SSL connections.
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA -keystore c:\jboss\server\default\conf\server.keystore

Add the following connector to c:\jboss\server\default\deploy\jboss-web.deployer\server.xml in addition to the existing one.

<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/server.keystore"
keystorePass="keystorepass"
sslProtocol="TLS"/>

'keystorepass' must be replaced with the password asked by keytool.

Restart jboss.

You should now be ready to access your web app from https://your_app in addtion to http://your_app.

additional info at http://www.jboss.org/file-access/default/members/jbossweb/freezone/docs/latest/ssl-howto.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic