周游世界

          喂馬, 劈柴, 周游世界

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            28 隨筆 :: 0 文章 :: 4 評論 :: 0 Trackbacks

          1、用keytool生成server.keystore文件:
          C:\Documents and Settings\new>keytool -genkey -alias tc-ssl -keyalg RSA -keystor
          e c:\server.keystore -validity 3650

          生成完后放入C:\jboss-3.2.6\server\default\conf中。

          2、配置server.xml文件
          <!-- SSL/TLS Connector configuration using the admin devl guide keystore-->
          ??????<Connector port="8443" address="${jboss.bind.address}"
          ?????????? 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、訪問https://localhost:8443/jmx-console/index.jsp,可以了。
          同時http://localhost:8080/jmx-console/index.jsp也可以訪問,
          如果將http轉向到https: 修改WEB應用的web.xml
          =========web.xml==================
          <security-constraint>
          ???? <web-resource-collection>
          ?????? <web-resource-name>HtmlAdaptor</web-resource-name>
          ?????? <description>An example security config that only allows users with the
          ???????? role JBossAdmin to access the HTML JMX console web application
          ?????? </description>
          ?????? <url-pattern>/</url-pattern>
          ?????? <!-- <http-method>GET</http-method>
          ?????? <http-method>POST</http-method> -->
          ???? </web-resource-collection>
          ???? <!--<auth-constraint>
          ?????? <role-name>JBossAdmin</role-name>
          ???? </auth-constraint> -->
          ???? <user-data-constraint>
          ????????????<description>Protection should be CONFIDENTIAL</description>
          ????????????<transport-guarantee>CONFIDENTIAL</transport-guarantee>
          ??????</user-data-constraint>
          </security-constraint>

          posted on 2006-09-13 15:10 周游世界 閱讀(2342) 評論(0)  編輯  收藏 所屬分類: JBoss
          主站蜘蛛池模板: 庆安县| 留坝县| 房产| 乐陵市| 高雄市| 府谷县| 巨鹿县| 巨野县| 大港区| 崇礼县| 乐安县| 得荣县| 潍坊市| 大新县| 渝中区| 安宁市| 汉寿县| 博罗县| 卫辉市| 沭阳县| 晋州市| 湖南省| 聂拉木县| 安西县| 高州市| 遂川县| 土默特左旗| 特克斯县| 琼中| 贵州省| 张家口市| 灵川县| 丹巴县| 阳泉市| 谷城县| 河北区| 隆化县| 东港市| 长葛市| 商城县| 白水县|