Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Hondo Chalthoum    on Oct 07 In Java Category.

  
Question Answered By: Jay Richards   on Oct 07

Follow this 3 step:

1)Generate keys with keytool
# Using the JDK's keytool program you find the program in bin
catalog in java_home, create an encryption key named tomcat and
store it in a keystore named training.keystore. Enter the password
training when prompted :

keytool -genkey -alias tomcat -keyalg RSA -keystore
training.keystore -validity 3650

# The password can be changed later, if necessary:

keytool -keypasswd -alias tomcat -keystore .\training.keystore -
keypass training -new JBtraining

Move the created file training.keystore to jboss-
4.0.x/server/default/conf.

2)Enable HTTPS support in Jboss
# You need to edit the tomcat configuration to enable HTTPS within
Tomcat. This file is in jboss-4.0.x/server/default/deploy/jbossweb-
tomcat50.sar/server.xml
# Uncomment the SSL/TLS connector section within this XML file.
# Change the keystoreFile attribute of the connector to point to the
location of the keystore file you created (training.keystore).
# The keystorePass attribute must be the same password you used to
create the keystore (training).


<!-- SSL/TLS Connector configuration using the admin devl guide
keystore -->

<Connector port="8443" address="${jboss.bind.address}"

maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"

emptySessionPath="true"

scheme="https" secure="true" clientAuth="false"


keystoreFile="${jboss.server.home.dir}/conf/training.keystore"

keystorePass="training" sslProtocol = "TLS" />

3)
Test your HTTPS setup by connecting to the jboss  default servlet via
encrypted channel: https://localhost:8443
now you should get a quastion if you accept the keys. if you dont
whant that cliens dont get that quastion you most by a key från a
certified provider.

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Using SSL Or get search suggestion and latest updates.


Tagged: