Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2303744
  • 博文数量: 321
  • 博客积分: 3440
  • 博客等级: 中校
  • 技术积分: 2992
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-24 09:08
个人简介

我就在这里

文章分类

全部博文(321)

文章存档

2015年(9)

2014年(84)

2013年(101)

2012年(25)

2011年(29)

2010年(21)

2009年(6)

2008年(23)

2007年(23)

分类: Java

2013-01-29 21:49:06

1.用keytool生成server.keystore文件:
C:\Documents and Settings\new>keytool -genkey -alias tc-ssl -keyalg RSA -keystore c:\ExpressPoscard.keystore -validity 3650
生成完后放入C:\jboss-3.2.6\server\default\conf中。
2。配置server.xml文件

                 maxThreads="100" minSpareThreads="5" maxSpareThreads="15"
           scheme="https" secure="true" clientAuth="false"
           keystoreFile="${jboss.server.home.dir}/conf/server.keystore"
           keystorePass="111111" sslProtocol = "TLS" />
3。访问,可以了。
同时也可以访问,
如果将http转向到https: 修改WEB应用的web.xml
=========web.xml==================

    
       HtmlAdaptor
       An example security config that only allows users with the
         role JBossAdmin to access the HTML JMX console web application
      

       /
      
    

    
    
            Protection should be CONFIDENTIAL
            CONFIDENTIAL
       

  
阅读(5158) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~