• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

http to https

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"deepadeepa deepa", please check your private messages for an important administrative matter.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic