aspose file tools *
The moose likes Security and the fly likes http to https Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "http to https" Watch "http to https" New topic
Author

http to https

sdeepa redd
Greenhorn

Joined: Jun 16, 2009
Posts: 5
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

Joined: Jan 10, 2002
Posts: 61790
    
  67

"deepadeepa deepa", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Liviu Grigorescu
Greenhorn

Joined: May 18, 2009
Posts: 2
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: http to https