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