jboss7开启https

1.在standalone.xml中增加https设置,完成后如下:
<subsystem xmlns="urn:jboss:domain:web:1.5" default-virtual-server="default-host" native="false">
	<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
	<connector name="https" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true">
	<!--开启客户端证书验证-->
	<ssl key-alias="证书别名" password="密码" 
		certificate-key-file="${jboss.home.dir}${file.separator}bin${file.separator}ssl.jks" 
		verify-client="true" 
		ca-certificate-file="${jboss.home.dir}${file.separator}bin${file.separator}trust.jks"/>
	</connector>
	<virtual-server name="default-host" enable-welcome-root="true">
		<alias name="localhost"/>
		<alias name="example.com"/>
	</virtual-server>
</subsystem>
 
2.将服务器证书和信任跟踪数拷贝(或者符号链接)到JBOSS_HOME/bin/下
3.启动服务器

参考文档:
http://docs.jboss.org/jbossweb/7.0.x/config/ssl.html

你可能感兴趣的:(jboss)