JBoss配置HTTPS安全连接
2014-03-24 18:20
501 查看
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>
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>
相关文章推荐
- 在Tomcat中配置https安全连接
- 详解Nginx服务器中配置全站HTTPS安全连接的方法
- Linux下配置https安全连接(ssl加密连接)
- 为wordpress配置https加密连接构造安全通道
- jboss中如何配置https
- java web https安全传输配置
- Nginx作为WEB服务相关配置(性能优化,网络连接,访问控制,虚拟主机,https等等)
- Nginx下配置HTTPS(SSL)安全站点
- Tomcat配置HTTPS方式生成安全证书
- Jboss6安全配置(添加/修改 用户和密码)
- HttpClient4.x客户端身份验证(HTTPS安全连接)
- java应用 tomcat中实现https安全连接的方法
- HTTPS是如何保证连接安全:每位Web开发者都应知道的
- HTTPS是如何保证连接安全:每位Web开发者都应知道的
- Java 如何配置加密连接(Https) 4000
- 配置终端服务连接的安全设置
- JBOSS的安全配置
- 使用SVCUTIL生成客户端代理类时:元数据包含无法解析的引用:“https: 无法为 SSL/TLS 安全通道与颁发机构“localhost”建立信任关系。基础连接已经关闭: 未能为 SSL/TL
- JBOSS的安全配置
- win服务器防止安全策略或防火墙配置错误而导致远程无法连接的bat