Configuring SSL for JBoss 4.0.5

Source: Internet
Author: User
Tags jboss

Premise:
JDK and Jboss4.0.5.ga are installed and configured under Windows xp/2000/2003, and JBoss is normally used.
That is, the http://localhost:8080/can appear on the JBoss page.

Steps:
1. Generate KeyStore
Start-> Run->cmd
Open the console and enter
Keytool-genkey-alias Tomcat-keyalg RSA
According to the prompts to enter the corresponding content, the effect is as follows:
E:/>keytool-genkey-alias Tomcat-keyalg RSA
Enter KeyStore Password: test123
What is your first and last name?
[Unknown]: Test
What is the name of your organizational unit?
[Unknown]: Test
What is the name of your organization.
[Unknown]: Test
What is the name of your city or region.
[Unknown]:
What is the name of your state or province.
[Unknown]: Beijing
What is the two-letter country code for that unit?
[Unknown]: CN
Cn=test, Ou=test, O=test, L=china, st=beijing, C=CN right.
[No]: Y

Enter <tomcat> 's master password
(press ENTER if same as KeyStore password):

Description: Enter a password with no special characters, or you may have an error running JBoss.

2. The. KeyStore (the default path under C:/Documents and settings/user name) is placed under Jbosshome/server/default/conf and renamed to Chap8.keystore.

3. Open Jbosshome/server/default/deploy/jbossweb-tomcat55.sar/server.xml, modify the following configuration:

<!--ssl/tls Connector configuration using the admin DEVL guide KeyStore
<connector port= "8443" address= "${jboss.bind.address}"
maxthreads= "strategy=" "MS" maxhttpheadersize= "8192"
Emptysessionpath= "true"
Scheme= "https" secure= "true" Clientauth= "false"
Keystorefile= "${jboss.server.home.dir}/conf/chap8.keystore"
keystorepass= "Rmi+ssl" Sslprotocol = "TLS"/>
-->
For
<!--ssl/tls Connector configuration using the admin DEVL guide KeyStore
<connector port= "8443" address= "${jboss.bind.address}"
maxthreads= "strategy=" "MS" maxhttpheadersize= "8192"
Emptysessionpath= "true"
Scheme= "https" secure= "true" Clientauth= "false"
Keystorefile= "${jboss.server.home.dir}/conf/chap8.keystore"
keystorepass= "test123" Sslprotocol = "TLS"/>

4. Start JBoss, enter http://localhost:8080/and https://localhost:8443/to test in the browser address bar respectively.

Reference: Http://www.i-proving.ca/space/Technologies/JBoss/Configuring+JBoss+SSL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.