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
阅读(2062) | 评论(0) | 转发(0) |